Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have url like below

product.php?productname=washing_machine


I want to rewrite this url using .htaccess file as under

products/productname/wasthing_machine.html


How can I do this using .htaccess. Please give me the exact syntax of .htaccess.
Posted

1 solution

Here you may find something useful on this.
http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html
 
Share this answer
 
Comments
rashidfarooq 28-Oct-11 12:29pm    
Thanks a lot for sharing this article.
RaisKazi 28-Oct-11 14:31pm    
Welcome. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900