.htaccess 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Multiple Environment config, set this to development, staging or production
  2. # SetEnv FUEL_ENV production
  3. <IfModule mod_rewrite.c>
  4. # Make sure directory listing is disabled
  5. Options +FollowSymLinks -Indexes
  6. RewriteEngine on
  7. # NOTICE: If you get a 404 play with combinations of the following commented out lines
  8. #AllowOverride All
  9. #RewriteBase /wherever/fuel/is
  10. # Restrict your site to only one domain
  11. # !important USE ONLY ONE OPTION
  12. # Option 1: To rewrite "www.domain.com -> domain.com" uncomment the following lines.
  13. #RewriteCond %{HTTPS} !=on
  14. #RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  15. #RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  16. # Option 2: To rewrite "domain.com -> www.domain.com" uncomment the following lines.
  17. #RewriteCond %{HTTPS} !=on
  18. #RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
  19. #RewriteCond %{HTTP_HOST} (.+)$ [NC]
  20. #RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
  21. # Remove index.php from URL
  22. #RewriteCond %{HTTP:X-Requested-With} !^XMLHttpRequest$
  23. #RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC]
  24. #RewriteRule ^index\.php(.*)$ $1 [R=301,NS,L]
  25. # Send request via index.php (again, not if its a real file or folder)
  26. RewriteCond %{REQUEST_FILENAME} !-f
  27. RewriteCond %{REQUEST_FILENAME} !-d
  28. # deal with php5-cgi first
  29. <IfModule mod_fcgid.c>
  30. RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
  31. </IfModule>
  32. <IfModule !mod_fcgid.c>
  33. # for normal Apache installations
  34. <IfModule mod_php5.c>
  35. RewriteRule ^(.*)$ index.php/$1 [L]
  36. </IfModule>
  37. # for Apache FGCI installations
  38. <IfModule !mod_php5.c>
  39. RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
  40. </IfModule>
  41. </IfModule>
  42. </IfModule>