Two servers. example.net, and example.com
On http://example.net, My httpd.conf contains
# example.net
RewriteEngine On
RewriteRule ^/felipetest2 http://example.com/webpage [P]
I am getting a 302 Moved, which is pointing to http://example.net/webpage, but should be http://example.com/webpage
What's going on?
I have control over both .net and .com servers in these examples.
I know I can do the same with ProxyPass and ProxyPassReverse, but I'm trying to get my head around this one.
Edit: Main Question: How do I show a maintenance page, without changing URL in the browser? On same domain, or across different domains?
You should use the flag [R] instead of [P] at the end of your RewriteRule if you would like that the redirection is performed externally by the browser.