HTTPS directed to wrong domain after moving the site
Permalink
Hello,
I might have posted this
http://www.concrete5.org/community/forums/customizing_c5/https-dire...
in the wrong forum and did not get any response, so I try it here again:
I developed my site on another domain.
After moving the site according to the manual posted here, https is still directed to the old domain.
So I went into the database, found the BASE_URL_SSL parameter still pointing to the old (development) domain, and edited it to the new domain.
Still, even after emptying the browser cache, https is redirected to the development domain.
What did I miss?
(Yes, I have a certificate)
Thanks!
I might have posted this
http://www.concrete5.org/community/forums/customizing_c5/https-dire...
in the wrong forum and did not get any response, so I try it here again:
I developed my site on another domain.
After moving the site according to the manual posted here, https is still directed to the old domain.
So I went into the database, found the BASE_URL_SSL parameter still pointing to the old (development) domain, and edited it to the new domain.
Still, even after emptying the browser cache, https is redirected to the development domain.
What did I miss?
(Yes, I have a certificate)
Thanks!
Hi Mainio,
thanks for posting.
I have done all that - looked into .htaccess,php.ini, site.php, all files, database (edited it as described above).
Cleared all caches.
Downloaded the database, searched for the old domain w. Notepad++, compared it to the old database...
Just noticed that there is only one instance in the database on line 19, that mentions the old db name:
--
-- Database: `old dbname`
--
thanks for posting.
I have done all that - looked into .htaccess,php.ini, site.php, all files, database (edited it as described above).
Cleared all caches.
Downloaded the database, searched for the old domain w. Notepad++, compared it to the old database...
Just noticed that there is only one instance in the database on line 19, that mentions the old db name:
--
-- Database: `old dbname`
--
Yeah, that shouldn't affect anything, it's just auto comments made by the mysqldump/myphpadmin/where ever you made the backup in the first place. So, that's only a comment in the database dump file, it does not have any actual affect on the data contained in your database.
Could you post the URL into this thread so that someone could take a look on how it behaves?
Could you post the URL into this thread so that someone could take a look on how it behaves?
Ok, I get a HTTP 301 response by accessing that domain with HTTPS:
So, there is still some redirect in place. You might want to look also at your virtual server configuration for that domain on that server in case there's still something interfering. And remember to restart Apache or reload its configuration after modifying your virtual server configuration.
HTTP/1.1 301 Moved Permanently Date: Thu, 24 May 2012 17:39:31 GMT Server: Apache Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Location: https://sedonashamanictours.com/ Content-Length: 0 Keep-Alive: timeout=5, max=75 Connection: Keep-Alive Content-Type: text/html
So, there is still some redirect in place. You might want to look also at your virtual server configuration for that domain on that server in case there's still something interfering. And remember to restart Apache or reload its configuration after modifying your virtual server configuration.
And by the way, you might also have some add-ons in place which might interfere, so you might also want to check that...
Hmmm.
They are on the same server, but I did not put any redirect in there, just moved the site from the shamanic to the mystic..
Must be one of the plugins, maybe the commerce one - which else would use https.
I remember editing the database, seeing the BASE_URL_SSL, but did nothing else than editing.
You mention restarting Apache...
Guess I have to ask my host for that?
I am on a Cpanel...
They are on the same server, but I did not put any redirect in there, just moved the site from the shamanic to the mystic..
Must be one of the plugins, maybe the commerce one - which else would use https.
I remember editing the database, seeing the BASE_URL_SSL, but did nothing else than editing.
You mention restarting Apache...
Guess I have to ask my host for that?
I am on a Cpanel...
You've probably had / still have this add-on installed also:
http://www.concrete5.org/marketplace/addons/force-ssl/...
http://www.concrete5.org/marketplace/addons/force-ssl/...
No, I don't.
Had the 301 tool installed, but did not use it. Will uninstall.
Don't know how to restart Apache or the db server. Maybe I just download the database, create a new one, import and switch to the new one.
Had the 301 tool installed, but did not use it. Will uninstall.
Don't know how to restart Apache or the db server. Maybe I just download the database, create a new one, import and switch to the new one.
Did that thing about copying the database, so I don't have to restart apache.
Emptied caches, no change.
Will download the site again and search for the old url.
Emptied caches, no change.
Will download the site again and search for the old url.
Restarted Apache, no success.
2. Try also clearing your site's cache from concrete5 dashboard
3. Check any other redirects (e.g. .htaccess redirects) on your server