WordPress.org

Ready to get started?Download WordPress

Forums

030904 CVS rewrite rules (7 posts)

  1. Cena
    Member
    Posted 10 years ago #

    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

  2. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    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.

  3. Cena
    Member
    Posted 10 years ago #

    Those spaces are present in the actual file.

  4. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    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.

  5. Cena
    Member
    Posted 10 years ago #

    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.

  6. harpshot
    Member
    Posted 10 years ago #

    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.

  7. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    Thanks harpshot. Fix committed.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.