views:

32

answers:

1
www.mysite.com/directory1/directory2/cgi-bin/something.cgi/http/www.hello.com

into

www.mysite.com/directory1/directory2/something/www.hello.com

OR

www.mysite.com/www.hello.com
A: 

As I think you want to rewrite the other direction:

RewriteRule ^www\.[^/]+$ directory1/directory2/cgi-bin/something.cgi/http/$0
Gumbo