Hello, Finally I managed to get rid of .php extensions in the links. Now contact.php for example is contact.html so forth using the following general rule: RewriteRule ^(.*).\html$ /$1.php [L] Code (markup): If someone requests (or for search engine) contact.php, what should be the rule that redirect to the new link? What I thought to redirect all .php requests to the home page or to a custom error page. Some .php addresses are more complicated as: product.php?parent_id=1&product_id=1. (which is now converted to: product/1/1/$product_title Thank you.