Jump to content

Help with SEO friendly URLs


wigwambam

Recommended Posts

Hi,

 

What is the best way to change:

 

www.mysite.com/product.php?id=1&sort=2&cat=z

 

to:

 

www.mysite.com/1/product-name-here

 

I would need the other variables in the URL (sort & cat...) to also pass through to the new address. Is this an .htaccess change or via PHP code? Any help appreciated, thanks.

Link to comment
https://forums.phpfreaks.com/topic/235855-help-with-seo-friendly-urls/
Share on other sites

I need to learn about .htaccess but I got this to work like a charm

 

http://www.desiquintans.com/cleanurls

 

You'll need to do a little work on your product.php because you'll get this

 

www.mysite.com/1/z

 

instead of www.mysite.com/1/product-name-here

 

 

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.