I just moved a site from one domain to another and now category links are all 404. I have flushed the rewrite rules, recreated the .htaccess file but still it throws up 404.
Weird thing is that if I delete
.htaccess file, then the posts are still accessible by
domain.com/postname/ and when I save permalinks, then it is created there. So can it be the case it is using some other .htaccess file? Possibly some fallback that I am not aware of?
Re-Edit: Tag pages don't work fine. Its all weird. Tags generally give 404, one of them opened a non 404 page but not what it should be (i.e. posts listing under that tag). And a category redirects itself to one of the posts. This all led me to conclude that tags were working but they are not. Also everything works, when I turn off the permalinks.
I am using a custom slug for category "cat" and not the default "category" but reverting to the default doesn't solve anything. Any clues?
Edit: I saw Ipstenu's sticky on WP forums and found that Advanced Permalinks are known to have a problem with WP 3.1, so I disabled it and recreated by permalinks but still no joy. What did I miss?
So far, I have tried recreating permalinks, flushing rewrite rules by calling
global $wp_rewrite; $wp_rewrite->flush_rules(); in
options table & even deleting
.htaccess file. So I am clueless and would appreciate if someone can give me a clue how it can be fixed.
Further Edit: If I delete the .htaccess file, the site behaves if it was there and I can browse pretty permalinks without any issue (.htaccess file is not there in the WP root) but when I resave permalinks, it is created there. So can there be some kind of fallback for .htaccess because this shouldn't be possible without rules in .htaccess?
EDIT: I am still stuck at the issue. Can anyone please help me out?
Final Edit: Is there anything left in the wild that I can do to troubleshoot this issue? I have lost hope on this one.