Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteCond %{HTTPS} !=on
- RewriteCond %{REQUEST_URI} ^/admin(.*)$ [OR]
- RewriteCond %{REQUEST_URI} ^/user(.*)$
- RewriteCond %{HTTP:X-Requested-With} ^$
- RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
- RewriteCond %{HTTPS} =on
- RewriteCond %{REQUEST_URI} !^/admin(.*)$
- RewriteCond %{REQUEST_URI} !^/user(.*)$
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{HTTP:X-Requested-With} ^$
- RewriteRule (.*) http://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement