views:

48

answers:

1

I'm making a bookmarklet and I want to do the next, figure,

I have the url http :// mydomain.com/http :// otherdomain.com

the url internal redirect to: http :// mydomain.com/?url=http :// otherdomain.com

but the url will still http :// mydomain.com/http :// otherdomain.com

I was trying a lot but I cant do ir I get an 500 error all times, can anyone helps me

I thin a .htaccess modification but i dont get it yet

A: 

This is my .htaccess content

BEGIN BM

RewriteEngine On RewriteBase /app/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d

this line redirects to show the url shorten eg: http :// mydomain.com/app/qwerty -> http :// somedomain.com

RewriteRule ^([0-9A-Za-z]+)/?$ /app/go.php?id=$1 [L]

what I want here is that when some user write http :// mydomain.com/ http:// otherdomain.com the redirection will be to http :// mydomain.com/?url=http :// otherdomain.com

END BM

Adan López