Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

50 Zeilen
1.6KB

  1. # Disable directory browsing
  2. Options All -Indexes
  3. # ----------------------------------------------------------------------
  4. # Rewrite engine
  5. # ----------------------------------------------------------------------
  6. # Turning on the rewrite engine is necessary for the following rules and features.
  7. # FollowSymLinks must be enabled for this to work.
  8. <IfModule mod_rewrite.c>
  9. Options +FollowSymlinks
  10. RewriteEngine On
  11. # If you installed CodeIgniter in a subfolder, you will need to
  12. # change the following line to match the subfolder you need.
  13. # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
  14. # RewriteBase /
  15. # Redirect Trailing Slashes...
  16. RewriteCond %{REQUEST_FILENAME} !-d
  17. RewriteCond %{REQUEST_URI} (.+)/$
  18. RewriteRule ^ %1 [L,R=301]
  19. # Rewrite "www.example.com -> example.com"
  20. RewriteCond %{HTTPS} !=on
  21. RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  22. RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
  23. # Checks to see if the user is attempting to access a valid file,
  24. # such as an image or css document, if this isn't true it sends the
  25. # request to the front controller, index.php
  26. RewriteCond %{REQUEST_FILENAME} !-f
  27. RewriteCond %{REQUEST_FILENAME} !-d
  28. RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA]
  29. # Ensure Authorization header is passed along
  30. RewriteCond %{HTTP:Authorization} .
  31. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  32. </IfModule>
  33. <IfModule !mod_rewrite.c>
  34. # If we don't have mod_rewrite installed, all 404's
  35. # can be sent to index.php, and everything works as normal.
  36. ErrorDocument 404 index.php
  37. </IfModule>
  38. # Disable server signature start
  39. ServerSignature Off
  40. # Disable server signature end