HI All,
I am having problems. Only on a brand new version 2 install. So clearly it isn’t only an upgrade issue.
I have tested various permalink permutations to get to the bottom of exactly where the problem lies, and and here are my findings:
I uploaded a blank .htaccess file (ie open notepad and save as .htaccess – all files) and cmod it to 666 on the server – Then clicked on the options and clicked on Update Permalink Structure – This added the new .htaccess format
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
Using this, the first five permutations below work (I have posted them here so that you can get it too work in some shape or form if you are in a hurry) – 4 and 5 DO NOT WORK.
1/ Default
https://www.domain.com/?p=123
Works – (with or without .htaccess file)
2/ Date and Name based
https://www.domain.com/2006/01/04/sample-post/
/%year%/%monthnum%/%day%/%postname%/
Works fine
3/ Numeric
https://www.domain.com/archives/123
/archives/%post_id%
Works fine
4/ Custom
/%post_id%
Works fine
5/ Custom
/%postname%/
Works fine
6/ Custom – Here are where the problems are!!
/index.php/directoryname/%post_id%/%postname%/
Now, on a WP 1.5 install I have this working fine without the need for a .htaccess file.
On WP 2 it doesn’t work at all with or without the .htaccess
7/ Custom –
/%post_id%/%postname%/
Again, does not work. (Which is odd given that /%post_id% DOES work)
Bottom line. Does anyone know what I need to change the .htaccess code above too in order to get 7/ to work?
ie /%post_id%/%postname%/
As that is the one I actually like to use (along with 6 -which also doesn’t work – if I am in a hurry – Lucky me!)
Regards,
Stuart