Feeds:
Atom

I decided to change how URLs to artciles look like. Earlier it was like /post-details/archive/2008/may/10/whatever/. Segments 2 to 5 do not add any value to URL, they just lengthen it. So I got rid of them. Don't worry, all your bookmarks are still valid! I added mod_rewrite redirection for old addresses.

Here is what I did technically:

  • removed postVarSet named "archive"
  • removed postVarSet named "comments"
  • added fixedPostVar to page with post details. If you do not know, how to make it, read my RealURL tutorial
  • patched timtam_theme_mistylook extension to remove hard-coded date parameters in the link to comments
  • patched timtab/class.tx_timtab_trackback.php to remove hard-coded date parameters in RDF links
  • set useHRDates=0 in the tt_news configuration
  • added mod_rewriterule to redirect permanently (status code 301) from old address to a new one (basically skip four segments in the URL)

Now I have much better looking URLs.

Like it? Then bookmark it! digg.comdel.icio.usgoogle.comMyLink.deYahooMyWebTechnoratiFurllive.comnetscapeTagThatWebnews

3 Comments

  1. on Wednesday, 11-06-08 09:43 iljitsch
    Hi - it's nice to have shorter URLs, but it's also a matter of fact that google loves to find the four numbers for the year in the URL....
    Keep up the good work :)
    cya
  2. on Thursday, 12-06-08 09:50 Thomas
    HI Dmitry,

    please check your RSS feed links. They contain a lot of not realurled tt_news parameters.

    Greets,
    Thomas
  3. on Thursday, 12-06-08 15:02 Dmitry Dulepov
    Thomas, thanks! Fixed (xmlnews.10.useHRDates=0). This was forgotten :)

    iljitsch, I am not sure. Why should Google care about year?

Leave a Reply