/.htaccess

http://bitstopdev-hostedqueuesys.googlecode.com/ · #! · 26 lines · 22 code · 4 blank · 0 comment · 0 complexity · c15656b9e78d70531d5b3db06b04f59a MD5 · raw file

  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteBase /queue/
  4. #Removes access to the system folder by users.
  5. #Additionally this will allow you to create a System.php controller,
  6. #previously this would not have been possible.
  7. #'system' can be replaced if you have renamed your system folder.
  8. RewriteCond %{REQUEST_URI} ^system.*
  9. RewriteRule ^(.*)$ /index.php/$1 [L]
  10. #Checks to see if the user is attempting to access a valid file,
  11. #such as an image or css document, if this isn't true it sends the
  12. #request to index.php
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15. RewriteRule ^(.*)$ index.php/$1 [L]
  16. </IfModule>
  17. <IfModule !mod_rewrite.c>
  18. # If we don't have mod_rewrite installed, all 404's
  19. # can be sent to index.php, and everything works as normal.
  20. # Submitted by: ElliotHaughin
  21. ErrorDocument 404 /index.php
  22. </IfModule>