Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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]