Ask Leo!

MovableType URLs

Home
««   »»

From Leo's mailbag:

> From: A Computer User
> Sent: July 31, 2005
> To: Ask Leo!
> Subject: MovableType URLs
>
> Leo,

> Hi Leo,
>
> What are the steps to change/tweak Moveable Type,
> so it uses keywords, separated by hyphens in the URLs?
> for example changing:
>
> http://www.sunnythoughts.com/archives/2005/07/thank_you_for_y.html
>
> to:
>
> www.sunnythoughts.com/Thank-You-For-Your.html
>
> or something like that,
> which might be more search engine friendly.

First change the location of all the individual archives to be
in the root. That's part of the Core Setup page in your Weblog
Configuration. Basically change all the location and URL references
to be the root of your site.

Than go to the Archive Files page. The "Archive File Template"
therein is more correctly thought of as the "archive file name
template". Using templating variables, here you can control the
filenames that MT will create. I set mine to:

<$MTEntryTitle dirify="1"$>.html

If you run the risk of duplicate titles, you might want something
like this instead:

<$MTEntryTitle dirify="1"$>_<$MTEntryID pad="1"$>.html

which is what I use out on http://forwardedfunnies.com

That ought to do ya!


Thanks for asking!

Leo

Article 8958 | Category: Internet

Google
ask-leo.com
Web

Top Searches

Tracing Email
Svchost
Remove WinMessenger

Leo's Picks

Stop PopUps
Stop Spam
Adsense Secrets
Podcast Starter Kit
Just a Geek MP3
FREE: Internet Safety
  EBook


Entire site Copyright © 2003-2008, Puget Sound Software, LLC
Terms, Conditions & Privacy