scion(host

Knowledge base

Redirects

Knowledge base

Htaccess uses redirect to look for any request for a specific page and if it finds that request, it forwards it to a new page you have specified:

Redirect /olddirectory/oldfile.html http://yournewsite.com/newdirectory/newfile.html

Note that there are three parts to that, which should all be on one line: the Redirect command, the location of the file/directory you want redirected relative to the root of your site (/olddirectory/oldfile.html = yournewsite.com/olddirectory/oldfile.html) and the full URL of the location you want that request sent to. Each of the three is separated by a single space, but all on one line.

You can also redirect an entire directory by simply using:

Redirect /olddirectory http://yournewsite.com/newdirectory/

Using this method, you can redirect any number of pages no matter what you do to your directory structure.

Categories

Getting started:

Cpanel control panel:

Webhost manager (WHM):

Questions and tips:

E-mail:

Domains and DNS:

FTP and files:

Htaccess magic:

CGI, PHP and Perl:

Subdomains:

SSL:

xhtml  css