I want to redirect
/buy
or
/buy/
on buy.php
Here is my expression
RewriteRule ^buy/ /buy.php
it redirects /buy/ to buy.php but it does not redirect /buy to buy.php
any idea???
thanks in advance
express slash problem
Moderator: General Moderators
- prometheuzz
- Forum Regular
- Posts: 779
- Joined: Fri Apr 04, 2008 5:51 am
Re: express slash problem
Maybe make the '/' optional?itsmani1 wrote:I want to redirect
/buy
or
/buy/
on buy.php
Here is my expression
RewriteRule ^buy/ /buy.php
it redirects /buy/ to buy.php but it does not redirect /buy to buy.php
any idea???
thanks in advance
Code: Select all
RewriteRule ^buy/? /buy.php