Hostgator shared SSL with admin directory - how?
Posted: Tue Sep 30, 2008 11:12 pm
Just installed CMS MS over at hostgator and completed all of the steps for securing the site but am having an issue with accessing the admin directory via SSL.
Hostgator makes you access sites using their shared SSL via https://servername.hostgator.com/~username/. This works fine for accessing the homepage, but clicking on any links redirects the browser to https://www.domain.com/abc/xyz which doesn't work with hostgator using their shared cert, you must pay them to install an SSL cert to use SSL with your domains URL. The same thing obviously happens when accessing the admin directory, which actually redirects to https://www.domain.com/admindir before the index.php loads up in the browser. I did add an .htaccess to the admin directory to mod_rewrite requests to https, but beyond this I'm at a loss.
Is there a way to fix this inside the admin pages, the .htaccess file in the admin directory, or some other method?
Hostgator makes you access sites using their shared SSL via https://servername.hostgator.com/~username/. This works fine for accessing the homepage, but clicking on any links redirects the browser to https://www.domain.com/abc/xyz which doesn't work with hostgator using their shared cert, you must pay them to install an SSL cert to use SSL with your domains URL. The same thing obviously happens when accessing the admin directory, which actually redirects to https://www.domain.com/admindir before the index.php loads up in the browser. I did add an .htaccess to the admin directory to mod_rewrite requests to https, but beyond this I'm at a loss.
Is there a way to fix this inside the admin pages, the .htaccess file in the admin directory, or some other method?