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
But it still wants to redirect.
Does anyone have any idea why this would happen?
Thanks
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
if you are on version 5.5+ you don't need to define base_url or dir_rel
That should be in
{site_root}/config/site.php
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
Also I am on an earlier version of C5 so I assume I have to define still.
What can it be!!??
grrr
You could try adding this as well:
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.
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.
Hey there.
This made no difference.
Is there anything I can look at using Firebug?
Thanks
AD
This made no difference.
Is there anything I can look at using Firebug?
Thanks
AD
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).
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).
Check your htaccess file for a redirect declaration.
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
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
If you PM some details to me I will have a look..
Try that now 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!!
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!!
Yep, Start slapping your forehead....
in your config/site.php for your "Live" site you had the base url set tohttp://www.test.etc..
in your config/site.php for your "Live" site you had the base url set tohttp://www.test.etc..
Dancer would you be kind enough to set my answer to "Best Answer"
arrrr
I don't understand... I double, triple and quadruply checked that!!
Feel very stupid now :|
Many thanks
D!!
I don't understand... I double, triple and quadruply checked that!!
Feel very stupid now :|
Many thanks
D!!