By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,655 Members | 1,860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,655 IT Pros & Developers. It's quick & easy.

Handling Special URLs in PHP

P: n/a
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

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
.oO(ea****@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
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.