Guest User

Untitled

a guest
Feb 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteBase /path/to/index/file/
  4.  
  5. # Removes index.php from ExpressionEngine URLs
  6. RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
  7. RewriteCond %{REQUEST_URI} !/system/.* [NC]
  8. RewriteRule (.*?)index\.php/*(.*) path/to/index/file/$1$2 [R=301,NE,L]
  9.  
  10. # Directs all EE web requests through the site index file
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteRule ^(.*)$ path/to/index/file/index.php/$1 [L]
  14. </IfModule>
Add Comment
Please, Sign In to add comment