Permanent Redirects

| | Comments (0)

A quick tip on implementing permanent URL redirections via the .htaccess file. I orginally posted this entry with a title of "Movable Type, Marsedit and SSH." A few days later I changed the title to the more inclusve "Marsedit and SSH" when I realized that the tutorial wasn't necessarily Movable Type specific. The permalinks for entries on this site are based on the title, so when the title changed, the permalink changed. This presented a few issues, because I had already linked to the tutorial from another site, and Google had already indexed the old permalink. A quick edit to the .htaccess file is all I needed to get everything straightened out. Amazingly, Google has already indexed the proper page. Here's the code:

Redirect 301 /2005/02/15/movable_type_marsedit_and_ssh.html http://www.jetrow.com/2005/02/15/marsedit_and_ssh.html

Disclosure: I totally lifted the style for the code above from Andy Budd. I vaguely recall seeing him style his <pre> tags with "overflow:scroll" applied. I think it's a great way to display code without breaking the design of the site.

Categories

Leave a comment

Twitter Update

    About this Entry

    This page was published on February 28, 2005 10:28 PM.

    Post GBV was the previous entry in this blog.

    Ted Leo is the next entry in this blog.

    Powered by Movable Type 4.01a