差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

次のリビジョン
前のリビジョン
web:dokuwiki:htaccess [2010/04/22 22:18]
yuki 作成
web:dokuwiki:htaccess [2011/08/24 10:07] (現在)
ライン 1: ライン 1:
-====== ​このサイトの.htaccess ======+====== ​Dokuwikiの.htaccess ====== 
 +<​note>​ 
 +ainoniwa.netで使われている設定をベタ書き。(https→httpに戻る辺りがちゃんと書けてない) 
 +  * www有り無し → www有りに統一 
 +  * ./​doku/​と./​doku/​doku.php → ./​doku/​に統一 
 +  * 基本的にHTTP/​HTTPSを問わない(dokuwiki管理機能と競合する場合がある?)  
 +  * ログインフォームはHTTPSアクセスに固定 
 +</​note>​
  
 <​code>​ <​code>​
ライン 23: ライン 30:
 RewriteRule ^(.*)$ http://​www.ainoniwa.net/​doku/​$1 [R=301,L] RewriteRule ^(.*)$ http://​www.ainoniwa.net/​doku/​$1 [R=301,L]
  
 +RewriteRule ^_media/​(.*) ​             lib/​exe/​fetch.php?​media=$1 ​ [QSA,L]
 +RewriteRule ^_detail/​(.*) ​            ​lib/​exe/​detail.php?​media=$1 ​ [QSA,L]
 +RewriteRule ^_export/​([^/​]+)/​(.*) ​    ​doku.php?​do=export_$1&​id=$2 ​ [QSA,L]
 RewriteRule ^$                        doku.php ​ [L] RewriteRule ^$                        doku.php ​ [L]
 RewriteCond %{REQUEST_FILENAME} ​      !-f RewriteCond %{REQUEST_FILENAME} ​      !-f
ライン 31: ライン 41:
 RewriteRule ^(.*)doku.php$ http://​%{HTTP_HOST}/​doku/​$1 [R=301,L] RewriteRule ^(.*)doku.php$ http://​%{HTTP_HOST}/​doku/​$1 [R=301,L]
 </​code>​ </​code>​
 +
 +{{tag>​dokuwiki htaccess}}
web/dokuwiki/htaccess.1271942309.txt.gz · 最終更新: 2010/05/22 17:40 (外部編集)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0