Redirection To Another Site
Oftentimes one is getting a message like 'This web site has a new addresse now.' and is asked to click on the very link. This is, in fact, obsolete. A web server is able to tell your browser, where a new web site is located, without the need of additional user activity. For this purpose it is required to create a file '.htaccess' (the biginning point is necesary!) in the accordant directory. The file needs to have this content:
Redirect status wherefrom whereabouts
the meanings:
status | The browser signalized status (generaly remains invisible). Either permanent, if the site definitley moved, or temp, if it just moved temporarily. |
wherefrom | path of the old site, for instance /~hugo/data/x.html (do not use relative paths!) |
whereabouts | URL of the new site. this also has to be absolute! That is to say it has to begin with http:// |
Example:
Redirect permanent /~otto/example.html http://wwwpub.zih.tu-dresden.de/~hugo
All requests to Otto's example.html will now be permanently redirected to Hugo's homepage.