FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » URL Rewriting..... (URL Rewriting.....)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
URL Rewriting..... [message #40830] Wed, 16 April 2008 06:55 Go to next message
contactdipesh is currently offline  contactdipesh   United Kingdom
Messages: 1
Registered: April 2008
Location: UK
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user

Hi there,

can any one help me in re writing the urls in PHP.
What i want, my old url is http://localhost/test.php?id=66&id2=88

and i want to change it to http://localhost/car/seats

where car and seats are the name corresponding to id and id2 in the database,
so instead of displaying id i want to display the name in the database corresponding to that id...

Thanks


Regards,
Dipesh Malik

[Updated on: Wed, 16 April 2008 12:07]

Report message to a moderator

Re: URL Rewriting..... [message #158609 is a reply to message #40830] Fri, 06 March 2009 11:11 Go to previous message
Software Download is currently offline  Software Download   China
Messages: 2
Registered: March 2009
Location: USA
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^files/(.+)/(.+).tar.gzip download.php?section=$1&file=$2 [nc]
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: PHP Development Team
Next Topic: object not found on regular webpages
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 17 14:27:40 EST 2017

Total time taken to generate the page: 0.00667 seconds