• Still having problems after upgrading new options-permalinks.php this morning.
    The errror:
    [Tue Mar 9 09:29:06 2004] [alert] [client xx.xxx] /public_html/wordpress/.htaccess: Invalid command ‘RewriteRule^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?([0-9]+)?/?$/wordpress/index.php?year=$1&monthnum=$2&day=$3&name=$4&p=$5&page=$6’, perhaps mis-spelled or defined by a module not included in the server configuration

Viewing 6 replies - 1 through 6 (of 6 total)
  • That line has no spaces in it, so it looks like one big long invalid command. It should look like this:
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?([0-9]+)?/?$ /wordpress/index.php?year=$1&monthnum=$2&day=$3&name=$4&p=$5&page=$6
    Note the space after RewriteRule and after the first dollar sign.

    Thread Starter Cena (a11n)

    (@cena)

    Those spaces are present in the actual file.

    Well, Apache is seeing one unbroken line for some reason. RewriteRule is a valid command, but RewriteRule^archives… is not. Perhaps you could edit the file, put in some extra padding, and see what goes down.

    Thread Starter Cena (a11n)

    (@cena)

    Nah, still not working. I’ve posted to my host about it, in case there’s a problem on their end, but he claims it’s not (and he’s good about admitting problems, etc, and fixing them.) So, it’s a mystery.

    You folks have lost me with all that rewrite stuff, but in regard to the original post (about error with the calendar), I could offer this, though I gotta think somebody else has already fixed it:
    template-functions-general.php line 343 reads:
    $thismonth = ”.zeroise(intval(substr($m, 4, 2), 2));
    but probably should be:
    $thismonth = ”.zeroise(intval(substr($m, 4, 2)), 2);
    Moving that paren two places to the left worked for me.

    Thanks harpshot. Fix committed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘030904 CVS rewrite rules’ is closed to new replies.