Wordpress Permalinks Questions

Discussion in 'WordPress' started by mmikeyy, Mar 30, 2008.

  1. #1
    Hi there, i've been searching, but not had much luck in actually solving my problem.

    I want to use the permalink "/%year%/%monthnum%/%day%/%postname%/" on my wordpress blog, but i get 404's.

    Just answer a few questions before i get them, yes i have mod_rewrite, yes wordpress can write to my .htaccess file, yes allowoverides is set to all.

    My .htaccess file looks like this

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    Code (markup):
    That's the one generated by wordpress. Any clues on how to solve this?
     
    mmikeyy, Mar 30, 2008 IP
  2. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #2
    Do you get an error message when you set the permalink structure in the WP admin panel?
     
    MTbiker, Mar 31, 2008 IP
  3. mmikeyy

    mmikeyy Peon

    Messages:
    431
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Nope, but coincidentally, whatever permalink i set. IT generates the same htaccess file..

    Using 2.5 if that's anything to do with it.
     
    mmikeyy, Mar 31, 2008 IP
  4. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #4
    The htaccess looks normal.

    I've heard of a couple errors like that with 2.5 though... I can't say what the problem is though. :(
     
    MTbiker, Mar 31, 2008 IP
  5. arwen54

    arwen54 Active Member

    Messages:
    632
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    60
    #5
    you need to change permissions on your .htaccess file

    change it (chmod) to 666 so that it is writable
     
    arwen54, Mar 31, 2008 IP
  6. mmikeyy

    mmikeyy Peon

    Messages:
    431
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It's already set to 666, wordpress doesn't have a problem writing to the file
     
    mmikeyy, Apr 1, 2008 IP
  7. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #7
    Here is the contents of my file:

    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html)/?(.*)$ [NC]
    RewriteRule ^.*$ - [L]
    </IfModule>
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    Code (markup):
    Maybe adding the lines you don't have in yours will solve your problem.
     
    mizaks, Apr 1, 2008 IP
  8. mmikeyy

    mmikeyy Peon

    Messages:
    431
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Ok sorted this now, somehow there was something wrong with the rewrite.load file in mods-enabled/

    Deleted that file, copied it from mods-enabled/ reloaded apache and it all works now.

    Thanks for all your help guys.
     
    mmikeyy, Apr 1, 2008 IP