Handling Special URLs in PHP

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


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2005
eatyou@rediffmail.com
 
Posts: n/a
Default Handling Special URLs in PHP

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

Reply With Quote
  #2 (permalink)  
Old 01-10-2005
Michael Fesser
 
Posts: n/a
Default Re: Handling Special URLs in PHP

.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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0