1 reputation
1
bio website
location
age
visits member for 1 year, 11 months
seen Jan 25 '13 at 15:47

Oct
7
awarded  Popular Question
Jan
18
comment Apache RewriteRule - Proxy flag not working
OK here's a weird thing - putting a trailing slash on the destination URL seems to fix my problem - the proxy works OK, and old1/old2 is shown in the browser. I'm guessing that without one, the DirectorySlash directive kicks in, and rewrites the URL from new1 to new1/. Thanks for the helpful discussion.
Jan
18
comment Apache RewriteRule - Proxy flag not working
That's a useful link, thanks. It does seem to be saying the opposite though - From Old To New (Internal) uses the [PT] flag, which doesn't change the URL in the browser, while From Old To New (External) does not specify the proxy flag, and therefore the URL does change in the browser. Therefore I need to use the proxy flag [P] ?
Jan
18
comment Apache RewriteRule - Proxy flag not working
Just tried that and unfortunately I'm not seeing that happening - the browser gets the /new1 page but also the /new1 URL.
Jan
18
comment Apache RewriteRule - Proxy flag not working
Unfortunately this needs to be done in a .htaccess file, where ProxyPassReverse is not permitted.
Jan
18
comment Apache RewriteRule - Proxy flag not working
This would mean /new1 was visible in the URL wouldn't it? I want to fetch data from /new1 but display the requested URL old1/old2 ?
Jan
17
revised Apache RewriteRule - Proxy flag not working
edited tags
Jan
17
asked Apache RewriteRule - Proxy flag not working