ascrivner
04-25-2011, 01:21 PM
Hi All,
I needed an SSL cert for a Magento webstore that existed as a subdomain of my primary domain.
To get the SSL cert just for my subdomain, I had to change my subdomain into my primary domain, so I had bluehost make the change.
Since magento was still in a subdir ( public_html/webstoredomain ), the public_html/.htaccess was all messed up and I could only see the homepage of the magento store.
The directions that bluehost give as a .htaccess solution to the subdir issue DO NOT WORK FOR A MAGENTO SITE.
Here is the solution to get a Magento site working from a subdir if you have to get an SSL cert and have move a subdomain to a primary:
Givens (Substitute as necessary)
a. /public_html/ is your root web directory
b. /public_html/webstoredomain/ is where you want to store Magento
c. webstoredomain.com is your domain name
Steps
1. Install Magento to /public_html/webstoredomain/ normally. Do not change Base URL during installation.
2. Copy /public_html/webstoredomain/.htaccess to /public_html/.htaccess
3. Copy /public_html/webstoredomain/index.php to /public_html/index.php
4. Edit /public_html/index.php line 45 for Magento 1.5.1 to read:
$mageFilename = 'webstoredomain/app/Mage.php';
5. Log into Magento Admin. Go to System > Configuration > Web
6. Under Unsecure change Base Link URL to http://webstoredomain.com/
7. Under Secure change Base Link URL to https://webstoredomain.com/
Now everything should work.
I needed an SSL cert for a Magento webstore that existed as a subdomain of my primary domain.
To get the SSL cert just for my subdomain, I had to change my subdomain into my primary domain, so I had bluehost make the change.
Since magento was still in a subdir ( public_html/webstoredomain ), the public_html/.htaccess was all messed up and I could only see the homepage of the magento store.
The directions that bluehost give as a .htaccess solution to the subdir issue DO NOT WORK FOR A MAGENTO SITE.
Here is the solution to get a Magento site working from a subdir if you have to get an SSL cert and have move a subdomain to a primary:
Givens (Substitute as necessary)
a. /public_html/ is your root web directory
b. /public_html/webstoredomain/ is where you want to store Magento
c. webstoredomain.com is your domain name
Steps
1. Install Magento to /public_html/webstoredomain/ normally. Do not change Base URL during installation.
2. Copy /public_html/webstoredomain/.htaccess to /public_html/.htaccess
3. Copy /public_html/webstoredomain/index.php to /public_html/index.php
4. Edit /public_html/index.php line 45 for Magento 1.5.1 to read:
$mageFilename = 'webstoredomain/app/Mage.php';
5. Log into Magento Admin. Go to System > Configuration > Web
6. Under Unsecure change Base Link URL to http://webstoredomain.com/
7. Under Secure change Base Link URL to https://webstoredomain.com/
Now everything should work.