差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
web:dokuwiki:htaccess [2010/04/22 22:18] yuki 作成 |
web:dokuwiki:htaccess [2011/08/24 10:07] |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
- | ====== このサイトの.htaccess ====== | ||
- | <code> | ||
- | <Files ~ "^[\._]ht"> | ||
- | Order allow,deny | ||
- | Deny from all | ||
- | Satisfy All | ||
- | </Files> | ||
- | |||
- | RewriteEngine on | ||
- | RewriteBase /doku | ||
- | |||
- | |||
- | RewriteCond %{HTTPS} !on | ||
- | RewriteCond %{QUERY_STRING} do=(log|profile|admin) | ||
- | RewriteRule ^(.*)$ https://www.ainoniwa.net/doku/$1 [R,QSA,L] | ||
- | |||
- | RewriteCond %{HTTPS} on | ||
- | RewriteCond %{QUERY_STRING} !do=(log|profile|admin) | ||
- | RewriteRule ^(.*)$ http://www.ainoniwa.net/doku/$1 [R,QSA,L] | ||
- | |||
- | RewriteCond %{HTTP_HOST} ^(ainoniwa\.net)(:80)? [NC] | ||
- | RewriteRule ^(.*)$ http://www.ainoniwa.net/doku/$1 [R=301,L] | ||
- | |||
- | RewriteRule ^$ doku.php [L] | ||
- | RewriteCond %{REQUEST_FILENAME} !-f | ||
- | RewriteCond %{REQUEST_FILENAME} !-d | ||
- | RewriteRule (.*) doku.php?id=$1 [QSA,L] | ||
- | |||
- | RewriteCond %{THE_REQUEST} ^.*/doku.php | ||
- | RewriteRule ^(.*)doku.php$ http://%{HTTP_HOST}/doku/$1 [R=301,L] | ||
- | </code> |