Guest User

Untitled

a guest
Jan 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. RewriteEngine on
  2. # Removes index.php from ExpressionEngine URLs
  3. RewriteCond %{THE_REQUEST} ^GET.*index.php [NC]
  4. RewriteCond %{REQUEST_URI} !/system/.* [NC]
  5. RewriteCond %{REQUEST_URI} ^application.*[NC]
  6. RewriteRule (.*?)index.php/*(.*) $1$2 [R=301,NE,L]
  7.  
  8. # Directs all EE web requests through the site index file
  9. RewriteCond %{REQUEST_FILENAME} !-f
  10. RewriteCond %{REQUEST_FILENAME} !-d
  11. RewriteRule ^(.*)$ index.php?/$1 [L]
  12.  
  13. <IfModule mod_rewrite.c>
  14. RewriteEngine On
  15. # !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
  16. # slashes.
  17. # If your page resides at
  18. # http://www.example.com/mypage/test1
  19. # then use
  20. # RewriteBase /mypage/test1/
  21. RewriteBase /
  22. RewriteCond %{REQUEST_FILENAME} !-f
  23. RewriteCond %{REQUEST_FILENAME} !-d
  24. RewriteRule ^(.*)$ index.php?/$1 [L]
  25. </IfModule>
  26.  
  27. <IfModule !mod_rewrite.c>
  28. # If we don't have mod_rewrite installed, all 404's
  29. # can be sent to index.php, and everything works as normal.
  30. # Submitted by: ElliotHaughin
  31.  
  32. ErrorDocument 404 /index.php
  33. </IfModule>
Add Comment
Please, Sign In to add comment