選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

58 行
1.6 KiB

  1. # $Id$
  2. # Activated modules
  3. RewriteEngine on
  4. # We talk utf8 here
  5. AddDefaultCharset utf-8
  6. # Disallowed files: .htaccess, .htpasswd, .svn etc.
  7. <Files ~ "^\.ht">
  8. Order allow,deny
  9. Deny from all
  10. </Files>
  11. <Files ~ "^\.svn">
  12. Order allow,deny
  13. Deny from all
  14. </Files>
  15. # MIME Types
  16. <IfModule mod_action.c>
  17. AddType application/x-cgi-php .html
  18. Action application/x-cgi-php /cgi-bin/php5
  19. </IfModule>
  20. <IfModule !mod_action.c>
  21. AddType application/x-httpd-php .html
  22. </IfModule>
  23. AddType text/css .css
  24. AddType application/octet-stream .TAP
  25. # Redirects for disallowed stuff
  26. RewriteRule ^.git/.* /.git/ [L]
  27. RewriteRule ^.svn/.* /.svn/ [L]
  28. RewriteRule (.*)/.svn/.* /$1/.svn/ [L]
  29. # Redirects for manual and lists
  30. RewriteRule ^manual/$ /manual.html?page=index [L]
  31. RewriteRule ^manual/(.*)[.]html /manual.html?page=$1 [L]
  32. RewriteRule ^list/$ /list.html?page=threads [L]
  33. RewriteRule ^list/(.*)[.]html /list.html?page=$1 [L]
  34. RewriteRule ^list-svn/$ /list-svn.html?page=threads [L]
  35. RewriteRule ^list-svn/(.*)[.]html /list-svn.html?page=$1 [L]
  36. RewriteRule ^list-trac/$ /list-trac.html?page=threads [L]
  37. RewriteRule ^list-trac/(.*)[.]html /list-trac.html?page=$1 [L]
  38. # Misc. redirects
  39. RewriteRule ^([^/]*).(gz|bz2|zip) /files/$1.$2 [R=permanent,L]
  40. RewriteRule ^images/(.*) /img/$1 [R=permanent,L]
  41. RewriteRule ^labs/img2oric.html /img2oric/ [R=permanent,L]
  42. RewriteRule ^devel.html /wiki [R=permanent,L]
  43. RewriteRule ^cgi-bin/viewcvs.cgi /browser [R=permanent,L]
  44. # Redirects for Trac - FIXME
  45. RewriteCond %{REQUEST_FILENAME} !-f
  46. RewriteCond %{REQUEST_FILENAME} !-d
  47. RewriteRule ^(.*)$ /cgi-bin/trac.cgi/$1 [PT,L,E=SCRIPT_NAME:/]