rahuul Posted December 31, 2009 Share Posted December 31, 2009 I need help in url rewritting..... i want to rewrite url something like: www.test.com/product.php?id=1 to www.test.com/productname.html I tried few codes but when ever i write .htaccess file it gives me ERROR 500. can any one help how to do that.......do i need to change something in config. P.S. I m using XAMP Quote Link to comment https://forums.phpfreaks.com/topic/186766-url-rewritting/ Share on other sites More sharing options...
cags Posted December 31, 2009 Share Posted December 31, 2009 Your going to have to clarify exactly what you want here. Which of those two URLs will the server be recieving from the client. Does you want the client to send the first and the server to show the second or the more likely alternative the exact opposite of that? Quote Link to comment https://forums.phpfreaks.com/topic/186766-url-rewritting/#findComment-986354 Share on other sites More sharing options...
rahuul Posted January 2, 2010 Author Share Posted January 2, 2010 presentely i have codded the page that shows up like: www.test.com/product.php?id=1 (where id is id of different product) but I want that the when user comes to this page he should see something like: www.test.com/productname.html (where productname will change accordingly). I tried few simple examples but every time i get and error page with ERROR 500 Quote Link to comment https://forums.phpfreaks.com/topic/186766-url-rewritting/#findComment-987032 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.