开发者

how to redirect to current directory with rewriterule

How can I redirect to current d开发者_高级运维irectory with rewriterule. example: http://www.mySite/directory/subdirectory/index.php

now program is trying to goto vvv.mySite/index.php

RewriteEngine on 
RewriteBase / 
RewriteCond  %{REQUEST_FILENAME} !-d 
##RewriteRule . /index.php [L] 
RewriteRule . index.php [L] 


Remove the RewriteBase directive so that the physical path is used.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜