Jump to content

Mod Rewrite - SEO Friendly URL


Recommended Posts

Hello,

 

I use urls like www.example.com/viewpost.php?ID=123 where i am passing ID parameter and then display records from sql in PHP. 

 

Later with help of this forum I can able to use MOD REWRITE functionality in .htaaccess and able to convert as dynamic seo friendly url like

 

www.example.com/mp3playerforsale

www.example.com/carforsale

 

Now I have the requirement that I have two pages which have ID as parameter. But both has to displayed in two different pages.

 

example :

 

mp3players should go to page viewpost.php?ID=123

cars should go to page viewpost2.php?ID=123

 

when i tried both displayed in viewpost.php where I need to display cars category in different pages.

 

any help appreciated !

Link to comment
https://forums.phpfreaks.com/topic/286689-mod-rewrite-seo-friendly-url/
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.