Posted 7/21/2008 9:43:48 PM
|
|
|
|
GOAL: My main site will not be SSL protected - but my store will be SSL protected. On http://xxxx.com/index.html -I can place a link to- https://www.store.xxxx.com
I have a working OSC store at: xxxx.com/catalog/
the ftp path is: /xx/catalog/
As part of the OSC configuration- an .htaccess file resides inside the catalog folder.
I then had my host (1and1) install an SSL certificate.
But I don't want my whole site secure, only the "Store".
So I created a sub-domain "store.xxxx.com"
I created a ftp folder for store.xxxx.com at: /xx/catalog/
I had 1and1 assign the SSL Cert to the existing OS COMM "catalog" folder at /xx/catalog/
I created an .htaccess file that has this code:
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://store.xxxx.com /$1 [R]
Results:
If I place the .htaccess file on the top level: /xx/ (not in the catalog folder) I get: 500 Internal Server Error trying to access http://xxxx.com/index.html. As well trying to access , https://www.store.xxxx.com yields: Data Transfer Interrupted.
If I place the .htaccess file in /xx/catalog/ it would of overwrite the OSC .htaccess file.
I was told I had to include:
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://store.xxxx.com /$1 [R]
in the OSC .htaccess file- but I added it > uploaded it to /xx/catalog/ and could not access My Site or My Store.
Bottom line is, I’m not sure my setup is correct and don’t know if I can Mod_Rewrite my way out of this mess or if I need to start over with OSC or move some thing around or all of the above….any tips welcome
|
|
|
|