Help - Search - Members - Calendar
Full Version: Archive file template questions
Movable Type Community Forum > Using Movable Type > Entries and Archives
smeg
I've been using MT for a couple of years and only just discovered the Archive File Template options!

So, to test and get things right before doing my main blog, I've been doing some of the smaller blogs on my site.

Run into a weird thing though ..

On one blog, I use:

CODE
individual/<$MTArchiveDate format="%Y/%m/"$><$MTEntryTitle dirify="1"$>/index.html


For the individual archives (or any of the archives) ... when you visit the main blog, and click the link to follow through to it, it automatically chops off the "index.html" and leaves a nicely formed URL.

Two other blogs, both behind .htaccess password protection, the index.html gets left on the URL to the archives. They use the exact same piece of code above.

I can't see why the one blog is forming it's links nicely, by chopping off the index.html on the URL, but the other two don't. Could it be the .htaccess, or something else I'm missing?



One other question:

When I move my main blog, which has around 1500 entries now, over to the new archives, how can I force my old archive links to go to the right place in the new archive lists? I have too many people pinging and linking into individual archives to leave them stranded, and not enough disk space to leave two sets running, or even an archive of the old archive ...

ideas?
markpasc
How are you linking to the individual archives in the various blogs? Usually you use <MTEntryPermalink> but if you use this instead:

CODE
<MTBlogURL>individual/<$MTEntryDate format="%Y/%m/"$><$MTEntryTitle dirify="1"$>/

your links will lack the "index.html" on the end.
smeg
Thats the weird thing, they are all linking in the same manner ... I'm not seeing anything which would cause it to do this.

Wierd!

I guess I'll have to live with it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.