开发者

how to redirect to current directory with rewriterule

开发者 https://www.devze.com 2023-01-16 06:52 出处:网络
How can I redirect to current d开发者_高级运维irectory with rewriterule. example: http://www.mySite/directory/subdirectory/index.php

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

精彩评论

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

关注公众号