Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # these rules ensure you aren't clobbering legit requests (like to image.php)
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4.  
  5. # just in case, exclude the admin directory
  6. RewriteCond %{REQUEST_URI} !^/admin
  7.  
  8. # rewrite
  9. RewriteRule ^(.*)$ image.php?query=$1 [L]
  10.  
  11. RewriteCond %{REQUEST_URI} !^/admin
  12. RewriteRule (.*) image.php?query=$1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement