Question : how can i make a rewrite rule to read links on the link bar,  if there any???

Hey guys,
im using .htaccess to rewrite my links to make it pretty.
on my script i have a submit that read a link on the link bar above for example

http://www.example.com?action=share&url=http%3A%2F%2Fwww.google.com%2F

I want it to be :

http://www.example.com/share/http%3A%2F%2Fwww.google.com%2F

i used this rewrite rule

RewriteRule ^/(.*)/(.*)?$ index.php?action=$1&url=$2 [L]

when i type in http://www.example.com/share/http%3A%2F%2Fwww.google.com%2F on the urls bar on my browser to test the result i get Error 400 (Bad request).

What am i missing?
Thanks so mush

Answer : how can i make a rewrite rule to read links on the link bar,  if there any???

so lets get tricky thing.

Encode the url portion using base64 and pass to url and decode at the destination page.

http://php.net/manual/en/function.base64-encode.php
http://php.net/manual/en/function.base64-decode.php


It will increase your security too.

Hope this helps
Addy
Random Solutions  
 
programming4us programming4us