https redirects to old site url

Permalink
Hello All,

I am trying to setup SSL hosting on my concrete5 site and when I manually type the addresshttps://www.treatmymigrainenow.com... the url redirects tohttp://test.medlink.net

Some helpful info. While I was setting the site up it was originally located at test.medlink.net. Once it was setup, I transferred it to the http://www.treatmymigrainenow.com domain.

I was thinking there would be something in the config/site.php but couldn't fine anything. I can't seem to find where this redirect might be coming from.

Thanks
Alex

 
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly
You are right, it should be in the config/site.php file.
Make sure your information there is pointing to the new database with its appropriate credentials (username/pw).
jero replied on at Permalink Best Answer Reply
jero
You might want to check out your .htaccess file too - particularly if you enabled pretty urls.

Also, I note thathttps://www.treatmymigrainenow.com/config/... does not redirect, which points to the redirect being done by C5 (request for a directory doesn't go through C5)

You might want to make sure that you disable automatic indexes - your server really ought not to be showing directory listings unless you've decided it should.
ajburns replied on at Permalink Reply
Thanks for the info. The source of the problem was coming from my theme. I don't quite know the exact cause, but I switched the theme to the default and was able to access the correct url. I deleted some empty php tags at the top of my theme's code then reactivated it and Voila! It works now? Strange!

Also thanks jero for the heads up on the index problem.