Handling Special URLs in PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eatyou@rediffmail.com

    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 -



    I want this url to be redirect to a php display page say -


    How does one do this?

    Please let me know.

    Thanks

    EY

  • Michael Fesser

    #2
    Re: Handling Special URLs in PHP

    .oO(eatyou@redi ffmail.com)
    [color=blue]
    >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?[/color]

    On Apache servers you could use mod_rewrite.

    Micha

    Comment

    Working...