.htaccess 699 B

123456789101112131415161718192021
  1. #Turns on URL Rewrite
  2. RewriteEngine on
  3. #Checks for existing files -f and directories -d and disables rewrite
  4. #RewriteCond %{REQUEST_FILENAME} !-f
  5. #RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  7. RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
  8. #Rewrite Rule - Will not append info to index.php. Upadated for use with GoDaddy as well.
  9. RewriteRule ^(.[a-zA-Z0-9\/-]*)$ index.php/$1 [PT,QSA,L]
  10. #Rewrite Rule - DEPRICATED - Will append info to index.php.
  11. #RewriteRule ^(.*)$ index.php/$1 [PT,QSA,L]
  12. #Rewrite Rule - ERROR - Will cause faults with GET variables passed to methods
  13. #RewriteRule ^(.*)$ index.php [PT,QSA,L]
  14. #Use PATH_INFO or REQUEST_URI