Hi I am having problem in fixing the regular expression. I want to forward all calls to shop.php but at the same time if[there is call i.e www.example.com then it should took it to index.php not the shop.php here is my current expression, it always throw pages to shop.php even if want to go index.php it will take me to shop.pop RewriteEngine on RewriteRule ^/ index.php RewriteRule ^([a-zA-Z0-9.]+) shop.php Code (markup):
you should escape the . RewriteEngine on RewriteRule ^/ index.php RewriteRule ^([a-zA-Z0-9\.]+) shop.php
thank you, but how can i stop it from going to shop.php if i am calling index.php it should not go to shop.php any help thanks
You have to tell it not to process any more rules ... [L] Try this RewriteEngine on RewriteRule ^/$ index.php [L] RewriteRule ^index.php$ index.php [L] RewriteRule ^([a-zA-Z0-9.]+)$ shop.php Code (markup): don't think you need to escape the . if you are using it as a wildcard search, only if you are using to find "." exact match ... eg \.html