[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Redirect http to https



> Please this in your .htaccess file in the root directory of your website.
> The ONLY thing you must change is /home/sites/siteX/web (this must be
> tailored to your product/site#)
> Do not edit the {SERVER_PORT} or {SERVER_NAME}
>
> #BEGIN FORCE HTTPS
> RewriteEngine on
> RewriteBase   /home/sites/siteX/web
> RewriteCond   %{SERVER_PORT}  !^443$
> RewriteRule   ^(.*)?$   https://%{SERVER_NAME}/$1 [L,R]
> #END FORCE HTTPS

Is there any way to make this work for a sub-directory of a site i.e.
/home/sites/siteX/web/secure  I have a customer who is concerned that his
'secure form' can also be access via http and security goes out of the
window.  I tried doing the change but get an internal server error but then
I tried it on the main site as well and got an internal server error.

Anyone know what's wrong?

Thanks

Gavin