Guest User

Untitled

a guest
Feb 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. RewriteEngine on
  2. ##point to installation directory
  3. ##if it is the root dir,enter /
  4. ##else /otherdir
  5. RewriteBase /
  6.  
  7. RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{8})$
  8. RewriteRule ^$ download.php?id=%1
  9.  
  10. RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{12})$
  11. RewriteRule ^$ delete.php?id=%1
  12.  
  13. RewriteRule ^file/([0-9]+)/(.*)$ download.php?id=$1&type=2 [L]
  14.  
  15. RewriteRule ^top/([0-9]+)\.html$ top.php?s=$1&type=1 [L]
  16.  
  17.  
  18. <IfModule mod_security.c>
  19. # Turn off mod_security filtering.
  20. SecFilterEngine Off
  21.  
  22. # The below probably isn't needed,
  23. # but better safe than sorry.
  24. SecFilterScanPOST Off
  25. </IfModule>
Add Comment
Please, Sign In to add comment