[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] http redirect
- Subject: Re: [cobalt-users] http redirect
- From: "Brian Curtis" <webmaster@xxxxxxxxxxx>
- Date: Wed Jan 19 05:04:21 2000
- Organization: Pomfret Computer Technologies
> Whats the html for http redirect?
I would recommend using the Apache Redirect command since some browsers and
search engines will ignore the http-equiv=refresh header when it's set to 0.
Make a .htaccess file in the directory which contains the page you want to
redirect people from and put the following inside the .htaccess file:
Redirect permanent /webdir/page.html http://www.domain.com/page.html
^-status ^ ^-full URL to redirect to
|
-dir/page you want to redirect people from
The status can be anyone of the following:
permanent, temp, seeother, gone
Next is the Web directory/page you want to redirect people from -
/webdir/page.html is relative from http://www.yourdomain.com. If you want
to redirect all hits to a certain directory, just leave off page.html.
Lastly is the full URL you want to redirect people to.
For example, say you want to redirect all hits from
http://domain.com/prods/products.html to http://otherdomain.com/order.html,
the Redirect command will look like:
Redirect [status] /prods/products.html http://otherdomain.com/order.html
HTH
Brian Curtis