Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- Options +FollowSymlinks
- RewriteEngine On
- # Block hidden directories
- RewriteRule "(^|/)." - [F]
- # Prevent /health_check.php from using https
- RewriteCond %{REQUEST_URI} !(health_check.php)$
- # Prevent /sns from using https but this DOES need codeigniter rewriting (see below)
- RewriteCond %{REQUEST_URI} !^/(sns)/
- # Reroute http to https
- RewriteCond %{HTTP:X-Forwarded-Proto} =http
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
- # Prevent rewriting of domain for codeigniter
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
- </IfModule>
Add Comment
Please, Sign In to add comment