ServerTune

Browse by category

Search    |    Advanced search

How do I force SSL for specific pages with Apache & mod_rewrite?

Create a .htaccess file in which ever directories you want to encrypt. In this example the directory is /andy

RewriteEngine On
RewriteRule ^(.*)$ https://www.DOMAIN.TLD/andy/$1 [R,L]
 
 
Add comment
 
Views: 767
 
Votes: 0
 
Comments: 0
 

Other articles in this Category

RSS