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