Debian GNU/Linux ス ..
[2ch|▼Menu]
788:login:Penguin
09/02/19 18:01:08 U5NQwgT6
lenny のapache2 を入れ
mod_rewrite を enabled にして

/etc/conf.d/ に、

AddType "application/xhtml+xml; charset=utf-8" .html

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml
RewriteCond %{LA-F:REQUEST_FILENAME} \.html
RewriteRule .* - "[L,T=text/html; charset=utf-8]"
</IfModule>

の application/xhtml+xml を解釈出来ない
IE向けに Content-Type を text/html に書き換える
設定ファイルを置いてみたんだけども
/ で終わる URI だと mod_dir は機能しても mod_rewrite が機能せず、
Content-Type が書き換わりません。
書き換えを機能させたまま、index.html等のファイルの場合に
ファイル名までリクエストしないで済ませるには何か良い方法が無いでしょうか?


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5166日前に更新/274 KB
担当:undef