Forum Moderators: phranque

Message Too Old, No Replies

how can I how can i make part of my website to be secured with https

         

nutakki vssrao

7:20 am on Nov 23, 2005 (gmt 0)



I want use .htaccess file to secure part of my site like www.abc.com/admin
can any one give me the syntax to edit my htaccess file

regards

jdMorgan

5:28 pm on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using mod_rewrite:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^admin(.*)$ https://www.example.com/admin$1 [R=301,L]

Not sure if this is what you want -- your post was rather short on describing your situation. I also presume that you you have https configured in httpd.conf. If not, this won't work.

Jim