NET/サーバー
の編集
https://over.6pb.info/wiki/?&e909cb4dc0
[
トップ
] [
編集
|
差分
|
履歴
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
(no template pages)
***.htaccessで [#rewriteRuleHtaccess] 例えば、&pre(http://hoge.com/work/);におけるworkディレクトリ内の.htaccessで設定する場合、 #pre{{ RewriteRule ^/work/ /work2/ や RewriteRule ^/work/(.*)$ /work2/$1 }} はworkしない。(.*の有無は関係ない。上記のような記述は、rewriteの最も基本的な用例として普通紹介されているが、それがworkしない。)次が正しい。 #pre{{ RewriteRule .* /work2/ や RewriteRule ^(.*)$ /work2/$1 }} -ディレクトリ内の.htaccessに書いた場合、Patternは「/」から始まらない。さらに、そのディレクトリ名を含まない。Cf. "In per-directory context (Directory and .htaccess), the Pattern is matched against only a partial path, for example a request of "/app1/index.html" may result in comparison against "app1/index.html" or "index.html" depending on where the RewriteRule is defined." [[mod_rewrite - Apache HTTP Server Version 2.4:http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule]]
タイムスタンプを変更しない
___paraedit_taxtarea___
テキスト整形のルールを表示する