Guest User

Untitled

a guest
Aug 12th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. htaccess - Rewrite PHP $_GET only in root
  2. RewriteEngine on
  3.  
  4. # ignore existing files (only apply to non-file)
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6.  
  7. #ignore folders (only apply to non-folder)
  8. RewriteCond %{REQUEST_FILENAME} !-d
  9.  
  10. # here you might also want to exclude some specific locations...
  11. RewriteCond %{REQUEST_URI} !^(images|css|js)/
  12.  
  13. # finally, apply the rule...
  14. RewriteRule ^(w+)$ index.php?p=$1 [L]
Advertisement
Add Comment
Please, Sign In to add comment