Kareeser
02-20-2007, 09:01 PM
I'm trying to do this:
User enters into browser...
<code>http://server1/wiki</code>
and browser outputs...
<code>http://server2/wiki</code>
but URL at the top still says...
<code>http://server1/wiki</code>
I don't have access to httpd.conf, so I'm adding lines to a .htaccess file on http://server1/wiki.
I have the following line on http://server1/wiki/.htaccess:
<code>RedirectMatch ^(.*)$ http://server2/wiki$1</code>
but testing that out only takes me to a blank page
The above example sounds needlessly complicated (at least, to me), and I originallly tried this:
<code>RedirectMatch /wiki http://server2/wiki</code>
and...
<code>RedirectMatch / http://server2/wiki</code>
... but neither worked... anybody have any solutions I could try? :S (or am I even supposed to be using RedirectMatch? I used Redirect, which worked great, but the user sees http://server2/wiki in the address bar at the top, which isn't what I want... and Alias/AliasMatch only seem to work for internal directories...)
Thanks in advance!
P.S. "server1" and "server2" are pseudonyms placed for this post... it just looks neater and easier to follow than if I used the actual links/IP addresses...
User enters into browser...
<code>http://server1/wiki</code>
and browser outputs...
<code>http://server2/wiki</code>
but URL at the top still says...
<code>http://server1/wiki</code>
I don't have access to httpd.conf, so I'm adding lines to a .htaccess file on http://server1/wiki.
I have the following line on http://server1/wiki/.htaccess:
<code>RedirectMatch ^(.*)$ http://server2/wiki$1</code>
but testing that out only takes me to a blank page
The above example sounds needlessly complicated (at least, to me), and I originallly tried this:
<code>RedirectMatch /wiki http://server2/wiki</code>
and...
<code>RedirectMatch / http://server2/wiki</code>
... but neither worked... anybody have any solutions I could try? :S (or am I even supposed to be using RedirectMatch? I used Redirect, which worked great, but the user sees http://server2/wiki in the address bar at the top, which isn't what I want... and Alias/AliasMatch only seem to work for internal directories...)
Thanks in advance!
P.S. "server1" and "server2" are pseudonyms placed for this post... it just looks neater and easier to follow than if I used the actual links/IP addresses...