Advertisement
salientdigital

Apache .htaccess file for use with Kohana 3.0.8

Jan 21st, 2011
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.73 KB | None | 0 0
  1. # Turn on URL rewriting
  2. RewriteEngine On
  3.  
  4. # Installation directory
  5. # RewriteBase /
  6.  
  7. # Protect hidden files from being viewed
  8. # <Files .*>
  9. #    Order Deny,Allow
  10. #    Deny From All
  11. # </Files>
  12.  
  13. # Protect application and system files from being viewed
  14. # RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
  15.  
  16. # Allow any files or directories that exist to be displayed directly
  17. RewriteCond %{REQUEST_URI} ^.+$
  18. RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf|xml)$ [OR]
  19. RewriteCond %{REQUEST_FILENAME} -f [OR]
  20. RewriteCond %{REQUEST_FILENAME} -d [OR]
  21. RewriteCond %{REQUEST_FILENAME} -l
  22. RewriteRule ^ - [L]
  23.  
  24. # Rewrite all other URLs to index.php/URL
  25. RewriteRule ^(.*)$ index.php?/$1 [PT,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement