views:

11

answers:

1

how to redirect to current directory with rewriterule

How can I redirect to current directory 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] 
A: 

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

Gumbo
thank you ! ! ! !
robert