Reputation: 1
I would like to change my page i.e. oldpage.php?id=11 to http://www.example.com/newpage.html.
Can any one please help. Thank you..
Upvotes: 0
Views: 386
Reputation: 132088
If you have mod_rewrite installed / enabled then this should work:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^id=11$ [NC]
RewriteRule ^oldpage\.php$ http://www.example.com/newpage.html? [L,R=301]
Upvotes: 1