Forum Moderators: phranque
I've a problem about that:
for example:
www.abc.com/home/index.php will be rewrite to www.abc.com/index.php (any file in folder HOME)
my code below:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /home
RewriteRule ^index\.php$ index.php
Its wrong, i dont understand? could you help me?
Thank a lot!
Khang.phan
The character ^ means that the line must start there, but your request line starts with "home/". Either remove the ^ or insert home/ right after it. Then it will rewrite home/index.php to home/index.php, but that's obviously no use, so add a slash in front of the target index.php to request /index.php.
It should be something like this:
RewriteBase /home
RewriteRule index\.php /index.php, Eivind
RewriteRule ^home/ /index.php
I still have problem.
My website work on real folder home
1. when you type www.abc.com, in root folder file index.htm will be redirect to home/home.php
2. I would like to see on URL www.abc.com/home.php (any file in folder home will see on URL is www.abc.com(no see /home)), but any file real run on folder home.
Thanks to all of you!
Khang.phan