Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

var_www_dokuwiki_htaccess 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ## You should disable Indexes and MultiViews either here or in the
  2. ## global config. Symlinks maybe needed for URL rewriting.
  3. #Options -Indexes -MultiViews +FollowSymLinks
  4. ## make sure nobody gets the htaccess, README, COPYING or VERSION files
  5. <Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
  6. <IfModule mod_authz_core.c>
  7. Require all denied
  8. </IfModule>
  9. <IfModule !mod_authz_core.c>
  10. Order allow,deny
  11. Deny from all
  12. </IfModule>
  13. </Files>
  14. ## Don't allow access to git directories
  15. <IfModule alias_module>
  16. RedirectMatch 404 /\.git
  17. </IfModule>
  18. ## Uncomment these rules if you want to have nice URLs using
  19. ## $conf['userewrite'] = 1 - not needed for rewrite mode 2
  20. RewriteEngine on
  21. RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
  22. RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
  23. RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
  24. RewriteRule ^$ doku.php [L]
  25. RewriteCond %{REQUEST_FILENAME} !-f
  26. RewriteCond %{REQUEST_FILENAME} !-d
  27. RewriteRule (.*) doku.php?id=$1 [QSA,L]
  28. RewriteRule ^index.php$ doku.php
  29. ## Not all installations will require the following line. If you do,
  30. ## change "/dokuwiki" to the path to your dokuwiki directory relative
  31. ## to your document root.
  32. #RewriteBase /dokuwiki
  33. ## If you enable DokuWikis XML-RPC interface, you should consider to
  34. ## restrict access to it over HTTPS only! Uncomment the following two
  35. ## rules if your server setup allows HTTPS.
  36. #RewriteCond %{HTTPS} !=on
  37. #RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]