Advertisement
Punk_UnDeaD

Untitled

Feb 10th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. RewriteCond %{HTTPS} !=on
  2. RewriteCond %{REQUEST_URI} ^/admin(.*)$ [OR]
  3. RewriteCond %{REQUEST_URI} ^/user(.*)$
  4. RewriteCond %{HTTP:X-Requested-With} ^$
  5. RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
  6. RewriteCond %{HTTPS} =on
  7. RewriteCond %{REQUEST_URI} !^/admin(.*)$
  8. RewriteCond %{REQUEST_URI} !^/user(.*)$
  9. RewriteCond %{REQUEST_FILENAME} !-f
  10. RewriteCond %{HTTP:X-Requested-With} ^$
  11. RewriteRule (.*) http://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement