Guest User

Untitled

a guest
Feb 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. $ cat .htaccess
  2.  
  3. <IfModule mod_rewrite.c>
  4. # Turn on URL rewriting
  5. RewriteEngine On
  6.  
  7. # If the request is for a modules assets directory allow it
  8. RewriteRule ^modules/.*/assets/.*$ - [L]
  9.  
  10. # Protect application and system files from being viewed
  11. RewriteRule ^(bluebox|modules|system|upload)/ - [F,L]
  12.  
  13. # Catch requests for XML or JSON and send them through an alternate entry point
  14. RewriteRule ^(.+)\.json$ json.php/$1 [T=application/json,L]
  15. RewriteRule ^(.+)\.xml$ xml.php/$1 [T=text/xml,L]
  16.  
  17. # Allow any files or directories that exist to be displayed directly
  18. RewriteCond %{REQUEST_FILENAME} installer\.html [OR]
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21.  
  22. # Rewrite all other URLs to index.php/URL
  23. RewriteRule .* index.php/$0 [PT,L]
  24. </IfModule>
Add Comment
Please, Sign In to add comment