Posts don’t show ONLY on main page with Permalinks
-
I just switched from a Linux shared hosting plan to a IIS shared hosting plan (leave your hosting complaints at the door, there were other forces at work). I migrated my data over by hand, and have all the posts and administration and accounts all working properly.
However, permalinks aren’t quite so pretty. I followed the advice from here to create a custom 404 page. However, since I’m hosting multiple domains from the same account, I had to modify the solution to point to the right subdirectory. Astonishingly, it worked. I could navigate to any archive, any category, any individual post. (Once I fix it up, I’ll give back, I promise.)
However, my blog home page doesn’t display ANY entries. It shows a single link to “Edit this entry,” which doesn’t actually link to anywhere — this comes from within the main while() loop, so I know that: it’s determining there are posts, it’s including the post.php that’s also used for other channels, and it’s executing the code. However, looking at the source, none of the expected content is there.
HOWEVER, if I change permalinks from
/%year%/%monthnum%/%day%/%postname%/
to
/index.php/%year%/%monthnum%/%day%/%postname%/
The main page works. I’m baffled as to how changing the permalink (especially that slightly) could cause the main page generation loop to fail so catastrophically.
Does anyone have any suggestions?
- The topic ‘Posts don’t show ONLY on main page with Permalinks’ is closed to new replies.