Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^example.com$
- RewriteRule (.*) http://www.example.com/$1 [L,R=301]
- # Removes index.php
- RewriteCond $1 !.(gif|jpe?g|png)$ [NC]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ /index.php/$1 [L]
- </IfModule>
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- # Removes index.php from ExpressionEngine URLs
- RewriteCond %{THE_REQUEST} ^GET.*index.php [NC]
- RewriteCond %{REQUEST_URI} !/system/.* [NC]
- RewriteRule (.*?)index.php/*(.*) /$1$2 [R=301,NE,L]
- # Directs all EE web requests through the site index file
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ /index.php/$1 [L]
- </IfModule>
- RewriteCond %{HTTP_HOST} ^example.com$
- RewriteRule (.*) http://www.example.com/$1 [L,R=301]
- # ----------------------------------------------------------------------
- # Option 1:
- # Rewrite "www.domain.com -> domain.com"
- RewriteCond %{HTTPS} !=on
- RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
- RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
- #
Add Comment
Please, Sign In to add comment