A straight forward redirection using .htaccess. Note that the domain name should be omitted from From address and it should always be there in To address, even if the redirection is on same server. [code]<IfModule mod_rewrite.c> RewriteEngine On redirect 301…
Useful url rewriting examples using .htaccess
1)Rewriting product.php?id=12 to product-12.html It is a simple redirection in which .php extension is hidden from the browser’s address bar and dynamic url (containing “?” character) is converted into a static URL.