Jump to content

URL Rewritting


rahuul

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/186766-url-rewritting/
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/186766-url-rewritting/#findComment-986354
Share on other sites

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/186766-url-rewritting/#findComment-987032
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.