View Single Post
09-03-2007, 05:26 PM
#3
Sutocu is offline Sutocu
Sutocu's Avatar
Status: I'm new around here
Join date: Sep 2007
Location:
Expertise:
Software:
 
Posts: 12
iTrader: 0 / 0%
 

Sutocu is on a distinguished road

  Old

Originally Posted by Salathe View Post
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.
Is that the only way to make it work? I don't have access to the php code that generates the URL. I could fix it with JavaScript, but that wouldn't be very search engine friendly... And since SEO was the reason for doing this, it really isn't an option. Thanks for the help, but is there any other way?