301 Redirect I finally added the much needed 301 redirect to the old UofM website. So now the search engines (google, google and google) should start showing the correct URL for the search results.


If you didnt already know how to do that, here is a HOWTO for servers that run on Apache and use the .htaccess file :
1. Create a text file htaccess.txt
2. Enter the following:
To redirect a folder
(eg: http://tc.umn.edu/~eape0004/ to http://eapen.byteverse.com/blog)
redirect 301 /~eape0004/ http://eapen.byteverse.com/blog/

To redirect a site
(eg: http://www.sample.com/ to http://eapen.byteverse.com/blog)
redirect 301 / http://eapen.byteverse.com/blog/

To redirect a single page
(eg: http://tc.umn.edu/~eape0004/old.htm to http://eapen.byteverse.com/blog/index.php)
redirect 301 /~eape0004/old.htm http://eapen.byteverse.com/blog/index.php
and so on…

3. Upload the file ‘htaccess.txt‘ to the correct directory and rename it from ‘htaccess.txt’ to ‘.htaccess‘ .

And Voilá!




Comments

This entry was posted on Saturday, March 19th, 2005 at 12:00 and is filed under General, Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
1 Comment so far

  1. Eapen on April 24, 2005 21:07

    The 301 method is only used to direct links from one site to another. To redirect links within the same site, you will need to use a script that checks the CGI variables to determine whether the link contains www or not and redirect accordingly.

    This cant be done with regular html though, you will need a php script or coldfusion or ASP or PERL or something similar (you get the picture).

Name (required)

Email (required)

Website

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Share your wisdom