0

私にはバグがあります.htaccess

RewriteCond %{REQUEST_URI}  !^(.*)/modalbox/.*
RewriteCond %{HTTP_HOST} !^www\.wiglost\.com$
RewriteCond %{HTTP_HOST} !^wiglost\.com/modalbox/$
RewriteCond %{HTTP_HOST} ^([^.]+)\.wiglost\.com$
RewriteRule ^([\a-zA-Z0-9\-\_\.\/]*)\.php$ index\.php?acc=%1 [L]

RewriteCond %{HTTP_HOST} !^www\.wiglost\.com$
RewriteCond %{HTTP_HOST} ^(.*)\.wiglost\.com$
RewriteRule ^show\.html$ index\.php?acc=%1&show [L]

ドメインexample.wiglost.comはOKですが、example.wiglost.com/show.html対応していませんwiglost.com?acc=example&showが、アクションwithshowは実行されませんが、アクションwithaccはOKです。

4

1 に答える 1

1

show.htmlにリダイレクトされますindex.phpが、`^([\ a-zA-Z0-9-_./]*).php $index.phpと一致するため、最初のルールと一致し、showパラメーターが上書きされます。index.php

RewriteRule ^index\.php$ - [L]他のルールの前に追加してみてください。

于 2012-07-04T20:38:56.280 に答える