Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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 mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteCond $1 !^(index.php) [NC]
- RewriteRule ^(.*)$ /EE_subdirectory/index.php/$1 [L]
- </IfModule>
- # Enable Rewrite Engine
- <IfModule mod_rewrite.c>
- #Go go gadget
- RewriteEngine On
- RewriteBase /
- #Exclude file paths, directory paths
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$
- #file whitelist, do not rewrite if file is root & name is ...
- RewriteCond $1 !^(favicon.ico|index.php|path.php|php.ini|admin.php) [NC]
- #directory whitelist, do not rewrite if path begines with ...
- RewriteCond $1 !^(system|sysbase|images|themes|css|assets)/ [NC]
- #Rewrite what needs rewriting
- RewriteRule ^(.*)$ /EE_subdirectory/index.php/$1 [L]
- </IfModule>
Add Comment
Please, Sign In to add comment