scriptygoddess

12 Feb, 2003

Redirects in MT

Posted by: kristine In: MT hacks

Earlier today, I saw a lazy web post about using mod_rewrite to redirect pages if you change your MT URLs. Check out Generating MT Entry Redirects.

Another thought that I had today — if you are moving a blog from one location to another (think changing domains), you could use a redirect right in the Individual Archives on the old server through MT before deleting the old blog.
Example: (in the head of an Individual Archive template)

<meta http-equiv="Refresh" content="1;url=http://your-new-site.com/archives/<$MTEntryID pad="1"$>.html">

As long as you are using the same naming scheme with the MTEntryID (which is the default), your old entries will point directly to the new site.

After a while, once people have stopped linking to the old domain, then you could just delete the individual archive files from the old server.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

No Responses to "Redirects in MT"

Comments are closed.

Featured Sponsors


  • Curt: If anyone comes across this with similar issues I was able to sort out the pagination issues painlessly with easyCommentsPaginate from http://www.mush
  • Christopher: Yeah, it is indeed hard to do. And something remains elusive about why the pagination never worked. I tried everything I could find. Regardless, I
  • Jennifer: Hi Christopher, always hard to bug test stuff like that remotely. Sorry those didn't help. Glad you found a solution though :)

About


Advertisements