This is a discussion on help with a RewriteRule within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I need to put together a rewriterule that will do the following: Incoming URL: http://www.mysite.com/redir/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I need to put together a rewriterule that will do the following: Incoming URL: http://www.mysite.com/redir/http://www.yoursite.com/ Proxied to: http://www.yoursite.com I can get this to work: http://www.mysite.com/redir/www.yoursite.com/ With this rule: RewriteRule ^/redir/(.*) http://$1 [P] But I need to include the 'http' in the URL string. I thought this might work but it didn't: RewriteRule ^/redir/http://(.*) http://$1 Suggestions? Thanks! |
|
|||
|
OK.. I spoke to soon..
This rule works, but instead of proxying, it does a rewrite: RewriteRule ^/redir/http://(.*) http://$1 [P] And I have a ProxyPassReverse statement for the URL I'm redirecting from. Assistance/insights would still be appreciated. Thanks again. |
| Thread Tools | |
| Display Modes | |
|
|