Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter timd

    (@timd)

    Thanks – turns out the placement in wp-config.php is a factor: put it at the bottom and Super Cache throws the error; put it at the top and it’s fine.

    Goodness only knows why, but at least it’s working at the moment…

    Thread Starter timd

    (@timd)

    OK, in case of future Googling, here’s what I did: changing the .htaccess to swap underscores for dashes seems to be a non-starter – according to people who know more about these things than me, it’s fraught with problems. So instead I:

    – hacked functions-formatting.php to change sanitize_title_with_dashes() so that it inserted MT-style underscores rather than dashes:

    $title = str_replace(' ', '-', $title); was replaced by
    $title = str_replace(' ', '_', $title);

    – ran a SQL query over the database to trim the post_name field down to a maximum of 25 characters:

    update posts set post_name = (left(post_name,25)) where 1=1

    – tweaked the .htaccess so that any inbound requests for old filetypes (.html, .shtml etc) were redirected.

    There didn’t seem to be any need to restrict future permalinks to 25 characters because they haven’t been Googled yet. So far all the Google hits for MT-style permalinks work, so it looks like this hack’s worked.

Viewing 2 replies - 1 through 2 (of 2 total)