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?
Nope, but coincidentally, whatever permalink i set. IT generates the same htaccess file.. Using 2.5 if that's anything to do with it.
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.
you need to change permissions on your .htaccess file change it (chmod) to 666 so that it is writable
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.
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.