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!

 
Mainio replied on at Permalink Reply
Mainio
1. Check also that your /config/site.php is correct
2. Try also clearing your site's cache from concrete5 dashboard
3. Check any other redirects (e.g. .htaccess redirects) on your server
Sumukha replied on at Permalink Reply
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`
--
Mainio replied on at Permalink Reply
Mainio
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?
Sumukha replied on at Permalink Reply
Sure:
http://mysticalbazaar.com/

Thanks for looking into this!
Mainio replied on at Permalink Reply
Mainio
Ok, I get a HTTP 301 response by accessing that domain with HTTPS:
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.
Mainio replied on at Permalink Reply
Mainio
And by the way, you might also have some add-ons in place which might interfere, so you might also want to check that...
Sumukha replied on at Permalink Reply
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...
Mainio replied on at Permalink Reply
Mainio
You've probably had / still have this add-on installed also:
http://www.concrete5.org/marketplace/addons/force-ssl/...
Sumukha replied on at Permalink Reply
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.
Sumukha replied on at Permalink Reply
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.
Sumukha replied on at Permalink Reply
Restarted Apache, no success.