testing to live - URL redirect issues

Permalink
Hi there,

I built a website on a subdomain: test.domain.com

The website is now ready to go and I have moved all the files tohttp://www.domian.com.

Problem is that the website when loading wants to redirect back to test.domain.com. I have changed the COnfig.php to

define('BASE_URL', 'http://www.domain.com');


But it still wants to redirect.

Does anyone have any idea why this would happen?

Thanks

dancer
 
Mnkras replied on at Permalink Reply
Mnkras
if you are on version 5.5+ you don't need to define base_url or dir_rel
Mainio replied on at Permalink Reply
Mainio
That should be in
{site_root}/config/site.php
dancer replied on at Permalink Reply
dancer
Sorry... yes I meant config/Site.php

Also I am on an earlier version of C5 so I assume I have to define still.

What can it be!!??

grrr
Mainio replied on at Permalink Reply
Mainio
You could try adding this as well:
define('REDIRECT_TO_BASE_URL', false);


and see if it makes any difference. If this makes some difference, your site is probably getting the BASE_URL from somewhere else than your config... Dunno how but there might e.g. be some kind of customization in place.

Actually the automatic setting of BASE_URL has been already in 5.4.0.5 (without the possibility for https) but since 5.4.2 (I think) the installation process hasn't written that anymore to the config file.
dancer replied on at Permalink Reply
dancer
Hey there.
This made no difference.
Is there anything I can look at using Firebug?
Thanks
AD
Mainio replied on at Permalink Reply
Mainio
Ok, hard to say without seeing the case in question. I think you cannot debug this with firebug, rather you should do server-side debugging and see what's wrong.

E.g. check apache configs whether there are some redirections and also you could check PHP-level whether the BASE_URL is correctly set (e.g. in some package's on_start function).
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Check your htaccess file for a redirect declaration.
dancer replied on at Permalink Reply
dancer
thanks for the response.

This is a little bit of a Blur to me :) I am not that technical.

I can forward details if you can be bothered ;) Understand if you can't though.

On the htaccess, I actually removed it, just incase. I am wondering if there is any serverside caching or am I speaking rubbish?

Thanks
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
If you PM some details to me I will have a look..
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Try that now dancer..
dancer replied on at Permalink Reply
dancer
Wow...
ha – amazing

But you're gonna have to let me in on your little secret. Is it an embarrassing one? Am I going to slapping my forehead ;)

Thank you so much – really really appreciate it.

D!!
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
Yep, Start slapping your forehead....
in your config/site.php for your "Live" site you had the base url set tohttp://www.test.etc..
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Dancer would you be kind enough to set my answer to "Best Answer"
dancer replied on at Permalink Reply
dancer
arrrr
I don't understand... I double, triple and quadruply checked that!!
Feel very stupid now :|
Many thanks
D!!