Apache redirect
DCT Jared Smith
jared at dctkc.com
Mon Aug 26 17:37:14 CDT 2002
The simplest redirect is an HTML redirect. Create a tiny
index.html page in the first location, with a META REFRESH
tag pointing to the second location. Your users will never
notice the difference, unless they're carefully watching
the URL as the page loads.
http://www.pageresource.com/html/metref.htm
The next easiest is a script redirect, which will get you
past the search engine problems that can happen with
the HTML redirect. In php, you would have a tiny file
with the following line:
<? header("Location: /public_html/pub/html/index.html");?>
This will cause the server to load the contents of your
second page rather cleanly, if you have PHP installed.
The next easiest is the Apache redirect.
http://httpd.apache.org/docs/mod/mod_alias.html#redirect
Last is a global search/replace function in an editor
that gives you the ability to open all files and decide on
each replace; shouldn't take you more than thirty
minutes if you do it carefully. Then you won't hafta
use redirect.
-Jared
More information about the Kclug
mailing list