Default training installation for wizzlern.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

.htaccess 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #
  2. # Apache/PHP/Drupal settings:
  3. #
  4. # Protect files and directories from prying eyes.
  5. <FilesMatch "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
  6. Order allow,deny
  7. </FilesMatch>
  8. # Don't show directory listings for URLs which map to a directory.
  9. Options -Indexes
  10. # Follow symbolic links in this directory.
  11. Options +FollowSymLinks
  12. # Make Drupal handle any 404 errors.
  13. ErrorDocument 404 /index.php
  14. # Custom php memory limit
  15. php_value memory_limit 32M
  16. # Force simple error message for requests for non-existent favicon.ico.
  17. <Files favicon.ico>
  18. # There is no end quote below, for compatibility with Apache 1.3.
  19. ErrorDocument 404 "The requested file favicon.ico was not found.
  20. </Files>
  21. # Set the default handler.
  22. DirectoryIndex index.php
  23. # Override PHP settings. More in sites/default/settings.php
  24. # but the following cannot be changed at runtime.
  25. # PHP 4, Apache 1.
  26. <IfModule mod_php4.c>
  27. php_value magic_quotes_gpc 0
  28. php_value register_globals 0
  29. php_value session.auto_start 0
  30. php_value mbstring.http_input pass
  31. php_value mbstring.http_output pass
  32. php_value mbstring.encoding_translation 0
  33. </IfModule>
  34. # PHP 4, Apache 2.
  35. <IfModule sapi_apache2.c>
  36. php_value magic_quotes_gpc 0
  37. php_value register_globals 0
  38. php_value session.auto_start 0
  39. php_value mbstring.http_input pass
  40. php_value mbstring.http_output pass
  41. php_value mbstring.encoding_translation 0
  42. </IfModule>
  43. # PHP 5, Apache 1 and 2.
  44. <IfModule mod_php5.c>
  45. php_value magic_quotes_gpc 0
  46. php_value register_globals 0
  47. php_value session.auto_start 0
  48. php_value mbstring.http_input pass
  49. php_value mbstring.http_output pass
  50. php_value mbstring.encoding_translation 0
  51. </IfModule>
  52. # Requires mod_expires to be enabled.
  53. <IfModule mod_expires.c>
  54. # Enable expirations.
  55. ExpiresActive On
  56. # Cache all files for 2 weeks after access (A).
  57. ExpiresDefault A1209600
  58. # Do not cache dynamically generated pages.
  59. ExpiresByType text/html A1
  60. </IfModule>
  61. # Various rewrite rules.
  62. <IfModule mod_rewrite.c>
  63. RewriteEngine on
  64. # If your site can be accessed both with and without the 'www.' prefix, you
  65. # can use one of the following settings to redirect users to your preferred
  66. # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  67. #
  68. # To redirect all users to access the site WITH the 'www.' prefix,
  69. # (http://example.com/... will be redirected to http://www.example.com/...)
  70. # adapt and uncomment the following:
  71. # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  72. # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  73. #
  74. # To redirect all users to access the site WITHOUT the 'www.' prefix,
  75. # (http://www.example.com/... will be redirected to http://example.com/...)
  76. # uncomment and adapt the following:
  77. # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  78. # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
  79. # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  80. # VirtualDocumentRoot and the rewrite rules are not working properly.
  81. # For example if your site is at http://example.com/drupal uncomment and
  82. # modify the following line:
  83. # RewriteBase /drupal
  84. #
  85. # If your site is running in a VirtualDocumentRoot at http://example.com/,
  86. # uncomment the following line:
  87. # RewriteBase /
  88. # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
  89. RewriteCond %{REQUEST_FILENAME} !-f
  90. RewriteCond %{REQUEST_FILENAME} !-d
  91. RewriteCond %{REQUEST_URI} !=/favicon.ico
  92. RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  93. </IfModule>
  94. # $Id: .htaccess,v 1.90.2.3 2008/12/10 20:04:08 goba Exp $