This is a discussion on Handling Special URLs in PHP within the PHP Language forums, part of the PHP Programming Forums category; I'm creating a classified ad site where each ad is identified by a number - say 234563. The user wishing ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm creating a classified ad site where each ad is identified by a
number - say 234563. The user wishing to view the ad will something like this - http://www.abcclassfieds.com/234563 I want this url to be redirect to a php display page say - http://www.abcclassfieds.com/showad.php?adid=234563 How does one do this? Please let me know. Thanks EY |
|
|||
|
.oO(eatyou@rediffmail.com)
>I'm creating a classified ad site where each ad is identified by a >number - say 234563. The user wishing to view the ad will something >like this - > >http://www.abcclassfieds.com/234563 > >I want this url to be redirect to a php display page say - > >http://www.abcclassfieds.com/showad.php?adid=234563 >How does one do this? On Apache servers you could use mod_rewrite. Micha |