Force browsers to use SSL Εκτύπωση

  • 14

RewriteEngine on
Options +FollowSymlinks


#Rewrite the URL for myapp to always use https except for the myapp/somefile.php file
RewriteCond %{REQUEST_URI} !^/myapp/somefile.php [NC]
RewriteCond %{REQUEST_URI} ^/myapp/ [NC]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]


#Rewrite the URL for myapp dl area to always use http
RewriteCond %{REQUEST_URI} ^/myapp/somefile.php [NC]
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

Ήταν χρήσιμη αυτήν την απάντηση;

« Πίσω