0
votes

Options +FollowSymLinks -MultiViews

RewriteEngine on

RewriteBase /

RewriteRule ^(.*)$ $1.php

RewriteCond %{REQUEST_URI} /login/

RewriteRule /login/(.*)$ /php/login/$1

1
I need the result like this... login/index to php/login/index.phpChiou-Ting Hung

1 Answers

0
votes

I am not a htaccess expert but I think the error is in your last line. Try replacing this line of htaccess

RewriteRule /login /php/login $1.php

with this

RewriteRule /login/ /php/login.php

I am guessing that you want to rewrite from /login/ to /php/login.php