Guest User

Untitled

a guest
Oct 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteBase /
  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/*(.*) /$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 ^(.*)$ /index.php/$1 [L]
  14.  
  15. <IfModule mod_rewrite.c>
  16. RewriteEngine On
  17. RewriteBase /
  18. RewriteCond $1 !^(index.php) [NC]
  19. RewriteRule ^(.*)$ /EE_subdirectory/index.php/$1 [L]
  20. </IfModule>
  21.  
  22. # Enable Rewrite Engine
  23. <IfModule mod_rewrite.c>
  24.  
  25. #Go go gadget
  26. RewriteEngine On
  27. RewriteBase /
  28.  
  29. #Exclude file paths, directory paths
  30. RewriteCond %{REQUEST_FILENAME} !-f
  31. RewriteCond %{REQUEST_FILENAME} !-d
  32. RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$
  33.  
  34. #file whitelist, do not rewrite if file is root & name is ...
  35. RewriteCond $1 !^(favicon.ico|index.php|path.php|php.ini|admin.php) [NC]
  36.  
  37. #directory whitelist, do not rewrite if path begines with ...
  38. RewriteCond $1 !^(system|sysbase|images|themes|css|assets)/ [NC]
  39.  
  40. #Rewrite what needs rewriting
  41. RewriteRule ^(.*)$ /EE_subdirectory/index.php/$1 [L]
  42.  
  43. </IfModule>
Add Comment
Please, Sign In to add comment