Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.