[WEB4LIB] Thanks for Website Redirect Help

Andrew Stevens lists at 4serendipity.com
Tue Jan 28 18:54:39 EST 2003


Hi Molly,


I second Larry's assertion that server-side redirection is the way
to go.

If your old server runs apache you can use mod_rewrite to accomplish
this.

Apache 1.3 URL Rewriting Guide
http://httpd.apache.org/docs/misc/rewriteguide.html

A Users Guide to URL Rewriting with the Apache Webserver
http://www.engelschall.com/pw/apache/rewriteguide/

mod_rewrite: A Beginner's Guide to URL Rewriting
http://www.webmasterbase.com/article/910

The syntax for mod_rewrite can be a little confusing if you haven't
used it before.  If you need any help feel free to shoot me an email.

If you are using IIS then the following link will get you started:
http://www.microsoft.com/windows2000/en/server/iis/htm/core/iicodirr.htm?id=17


Also, you might want to use a tool, like those mentioned by Patricia,
with a find and replace function to hunt out and replace and absolute
links pointing to your old domain. While the aforementioned
mod_rewrite solution will redirect any stray absolute links pointing to your
old server, you probably don't want to be stuck maintaining the old domain forever.

In addition to using a text editor to find and replace text in your
files, you can use Perl to find and replace text directly on the
server (that is if you have Perl installed).

Replacing Text in Multiple Files with Perl
http://www.evolt.org/article/Replacing_Text_in_Multiple_Files_with_Perl/17/360/

I would advise that you first make a complete backup of your site
and/or doing a test run on a small subset of your files before trying
any site-wide find and replace, since it is possible that your find
and replacing might have unintended results.


Andrew
http://www.4serendipity.com




More information about the Web4lib mailing list