[NBLUG/talk] Apache.
The Micxz
an_email at micxz.com
Tue Mar 2 13:17:00 PST 2004
I see what you mean now. You need a wild card. This can be done via
mod_rewrite. But I don't want to give out the wrong syntax on that'
It's all about your regex-fu at that point'
Anyone else? I want to know now.
--
Micxz
Steve wrote:
> Yeah, but will that tack the rest of the URL onto that? I got the
> impression it would not.
>
> See what im doing is moving a bunch of pages to a new server, but keep the
> main pages on teh old server, I want the move to be transparent =)
>
> -Steve
>
>
>
>
> On Tue, Mar 02, 2004 at 01:06:15PM -0800, The Micxz wrote:
>
>>In your .htaccess or vhost conf on www you could use:
>>
>>ErrorDocument 404 http://www2.placetogo.com/
>>
>>
>>?? Just one way ''
>>
>>--
>>Micxz
>>
>>Steve wrote:
>>
>>
>>>Is there anyone on the list who can help me out wiht a redirect rule for
>>>apache?
>>>
>>>I have 2 servers, both running apache. for examepl www and www2, I want
>>>it so if someone calls upa URL on www and if its a 404, it will redirect
>>>to the exact same url on www2 (but replace www with www2).. Is this
>>>possible?
>>>
>>>example
>>>
>>>www.somedomain.com/bill gets a 404 error, so it redirects to
>>>www2.somedomain.com/bill if its there, all is good, if it is not,
>>>www2 reports the 404 error.
>>>
>>>Is this possible? I've gone over the apache docs (not apache 2.0 by the
>>>way)
>>>
>>>I know this isn't exactly linux related =) But it is on 2 debian boxes =)
>>>
>>>Thanks.
>>>
>>>-Steve
>>>
>>
>>--
>>Micxz
>>
>>_______________________________________________
>>talk mailing list
>>talk at nblug.org
>>http://nblug.org/mailman/listinfo/talk
>
>
--
Micxz
More information about the talk
mailing list