Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteBase /
  3.  
  4. # Removes index.php from ExpressionEngine URLs
  5. RewriteCond %{THE_REQUEST} ^GET.*index.php [NC]
  6. RewriteCond %{REQUEST_URI} !/system/.* [NC]
  7. RewriteRule (.*?)index.php/*(.*) /$1$2 [R=301,NE,L]
  8.  
  9. # Directs all EE web requests through the site index file
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteRule ^(.*)$ index.php/$1 [L]
  13.  
  14. RewriteRule ^project/([^/]*)$ /project/index.php?p=$1&u=123&l=k [L, QSA]
  15.  
  16. ErrorDocument 404 /index.php
  17.  
  18. $uri_asked = explode("/", $_SERVER['PHP_SELF']);
  19.  
  20. $uri_asked[3]="project";
  21. $uri_asked[4]="settings";
  22.  
  23. include("www.domain.com/index.php?p=".$uri_asked[3]."&u=".$uri_asked[4]);
  24.  
  25. RewriteEngine On
  26.  
  27. RewriteCond %{THE_REQUEST} /index.php?p=([^&s]+) [NC]
  28. RewriteCond %{REQUEST_URI} !/system/ [NC]
  29. RewriteRule ^(.*?)index.php$ /$1%1? [R=301,NE,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement