Re: 301 redirects
by "Keith D Sellars" <Keith(at)webgraffix.com>
|
| Date: |
Thu, 11 Mar 2004 13:22:41 -0500 |
| To: |
"Brian V Bonini" <b-bonini(at)cox.net>, "John Snow" <john(at)appliedlanguage.com> |
| Cc: |
"HWG Basics" <hwg-basics(at)hwg.org> |
| References: |
appliedlanguage design |
| |
todo: View
Thread,
Original
|
|
Brian,
I think that they may actually need the following line in the .htaccess,
server config, virtual directory, etc. instead of the one you posted.
ErrorDocument 301 http://www.placeToDirectTo.htm
If you want to redirect all traffic except for a specific URL, you can use
the following:
#############################################
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/123.php$
RewriteRule (.*) http://www.foo.com/ [R]
#############################################
The above will redirect all traffic to www.foo.com/ except for 123.php in
the directory in which this .htaccess file exists.
Hope this helps some.
Sincerely,
Keith D Sellars
WebGraffix
www.webgraffix.com
"Making the Internet Easy"
----- Original Message -----
From: "Brian V Bonini" <b-bonini(at)cox.net>
To: "John Snow" <john(at)appliedlanguage.com>
Cc: "HWG Basics" <hwg-basics(at)hwg.org>
Sent: Thursday, March 11, 2004 10:04 AM
Subject: Re: 301 redirects
> On Thu, 2004-03-11 at 08:11, John Snow wrote:
> > Can anyone tell me how to setup a 301 redirect? I have changed names of
> > some pages and want to make sure that I don't lose any traffic
>
> For Apache:
> In server config, virtual host, directory, or .htaccess
>
> Redirect 301 /foo http://where/to/redirect/to/bar
>
>
> --
> Brian V Bonini <b-bonini(at)cox.net>
>
>
>
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.