Question : htaccess 302 redirect - seamless hidden url


I have a base magento install on and have setup multi-sites and stores for different domain names.

If I setup domain and set it as an alias to the site works as expected. Magento recognizes in the address line and treats the site as if it were However, I cannot bind an SSL cert to this domain as it doesn't exist as an entity but as a pointer.
Therefore I'm under the understanding that for to be served from and have SSL cert I have to set it up as a site and use an htaccess file. I'm pretty familiar with htaccess files and have had many other setups work successfully simply using a 301 redirect. This though changes the address in the address bar. This is bad as magento will not know which site to serve up, so I figured a 302 redirect would work well.

I've done some extensive reading and from what I gather an external redirect such as to would be would be defaulted to a 301 redirect.

How can I redirect to as I have full access to all the sites, with the only exception being that I cannot edit httpd.conf, hosts.conf or install new modules on the apache install.

FYI, I'm running the sites from RackSpace Cloud Sites offerings with a dedicated RackSpace Cloud Server for the database.

Please could some help.

Answer : htaccess 302 redirect - seamless hidden url

I would probably try a slightly different route:
- have a real directory for the 2nd website, so that the ssl is working fine
- build symbolic links to all the directories under this one, so that although I seem to have 2 different and parallel tree structures... there is in fact only one
With this setup, you would not need extra redirect (although the redirects for magento's smart urls will still be needed)
Random Solutions  
programming4us programming4us