Guest User

Untitled

a guest
Dec 6th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. AddDefaultCharset UTF-8
  2. Options -Indexes
  3.  
  4. # blocks direct access to the XML files - they hold all the data!
  5. <Files ~ "\.xml$">
  6. Order allow,deny
  7. Deny from all
  8. Satisfy All
  9. </Files>
  10. <Files sitemap.xml>
  11. Order allow,deny
  12. Allow from all
  13. Satisfy All
  14. </Files>
  15.  
  16. RewriteEngine on
  17.  
  18. # Usually it RewriteBase is just '/', but
  19. # replace it with your subdirectory path
  20. RewriteBase /
  21.  
  22. RewriteRule ^photos/.*$ - [PT]
  23. RewriteCond %{REQUEST_FILENAME} !-f
  24. RewriteCond %{REQUEST_FILENAME} !-d
  25. RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
Add Comment
Please, Sign In to add comment