[NBLUG/talk] Apache.
Eric Eisenhart
eric at nblug.org
Tue Mar 2 13:48:01 PST 2004
On Tue, Mar 02, 2004 at 12:47:17PM -0800, Steve wrote:
> 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)
On www.somedomain.com, do this somewhere in the configuration:
RewriteEngine on
RewriteCond %{REQUEST_URI} !-U
RewriteRule ^(.+) http:/www2.somedomain.com/$1
Read http://httpd.apache.org/docs/misc/rewriteguide.html for more info on
other ways to do similar things. (there's a similar doc for apache 2.0;
this particular one is the same on either)
--
Eric Eisenhart
NBLUG Co-Founder & Director-At-Large
The North Bay Linux Users Group
http://nblug.org/
eric at nblug.org, IRC: Freiheit at freenode, AIM: falschfreiheit, ICQ: 48217244
More information about the talk
mailing list