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 ??

Change your RewriteBase to

RewriteBase /my_site_/my_section