WordPress.org

Ready to get started?Download WordPress

Forums

Permalink: Nightly 2004-01-14 (16 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    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]
    ?

  2. Anonymous
    Unregistered
    Posted 10 years ago #

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

  3. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Take the /weblog/ part out of the RewriteBase.

  4. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Make it just / .

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    I'll give it a try !

  6. Anonymous
    Unregistered
    Posted 10 years ago #

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

  7. Anonymous
    Unregistered
    Posted 10 years ago #

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

  8. Laughinglizard
    Member
    Posted 10 years ago #

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

  9. Anonymous
    Unregistered
    Posted 10 years ago #

    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?

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    btw: with the "IfModules" it still doesn't work.

  11. Anonymous
    Unregistered
    Posted 10 years ago #

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

  12. Anonymous
    Unregistered
    Posted 10 years ago #

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

  13. antifuse
    Member
    Posted 10 years ago #

    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.

  14. Alex King
    Member
    Posted 10 years ago #

    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.

  15. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  16. Anonymous
    Unregistered
    Posted 10 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.