If there is no way for wp to figure out when a post was made, it can’t link to a monthly archive can it ?
If your mod_rewrite rules are just %postname you are going to have a lot of problems. It needs more information.
Which is one of the reasons I’m looking forward to 1.3. For my base permalinks, I want to use mysite/postname, while for archives, also including the year / month / day would be acceptable. But on a post by post basis, it’s (IMHO) that the year/month/day is pointless and creates incredibly long URLS (especialy once my categories get included as well) that I’d just assume do without.
Tg
Thread Starter
Anonymous
“If your mod_rewrite rules are just %postname you are going to have a lot of problems. It needs more information.”
My mod_rewrite rules are ‘/%postname%/’, but the last 5 is ommited in the archive link for some reason. Changing the rewrite rule to ‘/%day%/%monthnum%/%year%/%postname%/’ results in the archive link being http://www.7784.co.uk/%day%/12/
Thread Starter
Anonymous
So….
Why do the archive links break when I use the mod rewrite option?
All my links work flawlessly with these parameters:
Links: /%postname%/%year%/%monthnum%/%day%/
Categorys: /category
The resulting archive links do not work, they produce this:
http://www.myurl.com/%postname%/2004/12/
Any help would be welcomed!
Thanks
/%postname%/ needs to go at the end of the permalink, not at the beginning. And, you need to have /archives/ at the beginning. Basically, what you need is:
/archives/%year%/%monthnum%/%day%/%postname%/
I have the same problems… if I use:
/archives/%day%/%monthnum%/%year%/%post_id%/%postname%
anything works fine , but I hve a bad request at the archive
but if I use:
/archives/%year%/%monthnum%/%day%/%postname%/
the post links break!
I don’t see any problem at all. If any, you’re missing a / at the end of /%postname%, but that’s it. It should end with /%postname%/.
The problem appears to be with the archive link(s). I’m not sure how you’ll get those to be recognized correctly with the structure you’re using for your permalinks.
Thanks for help, I solved the problem now with “try and error”-methode
I cancled all date parameters (year%/%monthnum%/%day%)…. the structure is now just :/archives/%postname% – and it works erverywhere (I hope ;-)))
haha -no sorry, it don’t works everywhere – now, the calendar has a 404 ….tzzz?
ok – but now, I think, it works!
It was a “european problem” … in most european countries you usually write a date as “day/month/year”
Does anybody (except some british and german users :)) really tried to work with the structure described at “options-permalink.php” ? ;-))
That means – if you use the amercican date structre for permalinks (month/day/year) the script works well…
/archives/%monthnum%/%day%/%year%/%postname%