View Single Post
09-03-2007, 12:38 PM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

You need to 'url encode' the url item in the query string ("http://www.domain.com/?p=1"). Your encoded url will be
index?url=http%3A%2F%2Fwww.domain.com%2F%3Fp%3D1
That could then be rewritten easily to /url/http%3A%2F%2Fwww.domain.com%2F%3Fp%3D1 without too much trouble.

To get the encoded url string you can use JavaScript's encodeURIComponent function or PHP's urlencode function, to name a few.