dqjjw04440 2012-05-10 14:06 采纳率: 0%
浏览 63
已采纳

mod_rewrite重定向到错误的目录

I have a simple redirect :

RewriteEngine On
RewriteBase /
RewriteRule ^test.php$ index.php

in my htaccess file located in : root_dir/my_site/my_section/test.php

The problem is that it is redirecting to root_dir/index.php instead of root_dir/my_site/my_section/index.php

How do i redirect to the same folder ??

  • 写回答

1条回答 默认 最新

  • duanmao1872 2012-05-10 14:08
    关注

    Change your RewriteBase to

    RewriteBase /my_site_/my_section
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?