は、私は簡単なの.htaccessファイルこれはmod_rewriteのバグですか、何か不足していますか?
RewriteEngine on
RewriteRule ^[^-]*-(.*)$ http://example.com/$1 [R]
RewriteRule ^[(template)(internal)(stuff)(files)] - [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?category=$1&page=$2 [L]
RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [L]
RewriteRule ^/$ index.php?page=news [L]
を持っていると私はhttp://example.com/foo/barすべてのために要求したときは大丈夫です - Apache2のはhttp://example.com/index.php?category=foo&page=barにリダイレクトするが、私は(カテゴリ名がまたはzで始まる場合)、それはdoesnのhttp://example.com/aoo/barまたはhttp://example.com/zoo/barを要求する場合1つのエラーでリダイレクトされますか?
の.htaccessテスターhttp://htaccess.madewithlove.beも、それをしません。
誰でも把握できますか?
EDIT: AOO /バー - 404。 boo/bar - index.php; coo/bar - index.php; doo/bar - index.php; eoo/bar - 404; foo/bar - 404; goo/bar - index.php; hoo/bar - index.php; ioo/bar - 404; joo/bar - index.php; koo/bar - 404; loo/bar - 404;ムー/バー - 404; noo/bar - 404; ooo/bar - index.php; poo/bar - 404; qoo/bar-index.php; roo/bar、soo/bar、/ bar - 404; uoo/bar、voo/bar、woo/bar、xoo/bar、yoo/bar-index.php;動物園/バー - 404
エラー404が表示されますか? (確かに) – SergeS
はい、aoo/barで404を送信しますが、foo/barでindex.phpが正しく表示されます。 – milleniumbug
あなたは[^/\。]を[a-zA-Z]に置き換えることができます。多分助けてください。オンラインテスターはこのエラーを再現しません。 – SergeS