• I have this nightly: wordpress-2004-01-14.zip
    I used to run the 1.0 version, but I couldn’t resist to upgrade. The following problem occurs: I can’t get to get the permalinks to work. This can have two causes:
    1. I’m an idiot, and I don’t know how they work. (this could easily be true)
    2. Something isn’t working in the nightly.
    Besides upgrading to a nightly, I also changed from dir. The weblog isn’t in my root anymore (/) but in a ‘weblog’ dir (/weblog/). I tried different things, like put the htacces in the root, in the ‘weblog’ dir, edited the htacces different times, tried id_post and some other things. It just doesn’t seem to work. In the root with 1.0 I had no problem.
    So my question: Where goes the htaccess? In the root (/) or in the weblog dir (/weblog/). And is there a problem in the htaccess:
    RewriteEngine On
    RewriteBase /weblog/
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/?$ /weblog/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^archives/category/?([0-9a-z-]+)?/? /weblog/index.php?category_name=$1 [QSA]
    ?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter Anonymous

    Sorry, posted by me: Reinier (www.reinier.biz)

    Take the /weblog/ part out of the RewriteBase.

    Make it just / .

    Thread Starter Anonymous

    I’ll give it a try !

    Thread Starter Anonymous

    Sorry, doesn’t work. I tried it with .htaccess in the root (/) and in teh ‘weblog’ dir (/weblog/)

    Thread Starter Anonymous

    Allright, but WHERE do I put the .htaccess? in the weblog dir or in the root?

    LOL…sorry, those are my rules, dont use those, create your own but add the IfModules

    Thread Starter Anonymous

    Pff, I’m getting crazy… ok, it still doesn’t work. In my root (reinier.biz/) now is the following .htaccess:
    =======
    RewriteEngine On
    RewriteBase /
    RewriteRule ^weblog/cat/(.*) /weblog/index.php?category_name=$1 [QSA]
    =======
    I’m getting back to basics, to identify the problem. This should work just fine right? Well, it doesn’t. Try it yourself:
    This doesn’t work:
    http://www.reinier.biz/weblog/cat/nieuws
    This does:
    http://www.reinier.biz/weblog/index.php?category_name=nieuws
    I’m getting confused. What goes wrong?

    Thread Starter Anonymous

    btw: with the “IfModules” it still doesn’t work.

    Thread Starter Anonymous

    Well, okay, I’ll try that. The strange thing is, that it worked before (with 1.0 and in the root).

    Thread Starter Anonymous

    Damn, still not working. I just don’t get it. Well, I’ll just wait on the official 1.01 release…

    The thing is – it appears as if the rewrite condition isn’t catching it at ALL. That wouldn’t be a WP problem, that would be a problem with the rewrite condition. I’m guessing if you moved it back to the root directory the rewrite rules would work just fine.

    I think antifuse is right. If your rule needs to work outside of the WP directory, it will need to be up at that level.

    Thread Starter Anonymous

    Allright, now I’m getting somewhere. This works:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^weblog/archive/(.*) /weblog/index.php?p=$1 [R=permanent]
    So there is a problem in the original code, or else I can’t explain the things that happen.

    Thread Starter Anonymous

    Ok, where getting closer…. this works too:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^weblog/archief/([0-9]+)?/?([0-9]+)?/?$ /weblog/index.php?p=$1&page=$2 [QSA]
    RewriteRule ^weblog/archief/category/(.*)/ /weblog/index.php?category_name=$1 [QSA]

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

The topic ‘Permalink: Nightly 2004-01-14’ is closed to new replies.