robert
robert

Reputation: 625

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] 

Upvotes: 0

Views: 1701

Answers (1)

Gumbo
Gumbo

Reputation: 655269

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

Upvotes: 2

Related Questions