Opened 17 years ago
Closed 16 years ago
#8244 closed defect (bug) (fixed)
404 Pages not working, forwarding to Archive
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | General | Keywords: | 404, not found |
Focuses: | Cc: |
Description
If you type
example.com/somepagenothere
It'll forward to Archive template but display no content, just imports header/sidebar/footer
If you type
example.com/somethingnothere/somepagenothere
It'll display a correct 404
This issue persists in all 2.7 Beta's up to Beta 3 tested so far
Change History (11)
#2
@
16 years ago
- Milestone 2.7 deleted
- Resolution set to worksforme
- Status changed from new to closed
Cannot reproduce. http://example.com/randomfoobar returns a 404 header and 404 message.
Please re-open with more information about your permalink structure and any other relevant information.
#3
@
16 years ago
- Resolution worksforme deleted
- Status changed from closed to reopened
Example on my server:
http://www.kye.me/wordpress/blaa
Doesn't return a correct 404 (even checked the HTTP Headers), it thinks it's a category for some reason
http://www.kye.me/wordpress/blaa/blaaaa
Returns correct 404
Permalink structure is /%category%/%postname%
All versions of 2.7 up to 2.7-beta3-9791 tested so far, same problem, all plugin's off and on multiple themes (inc default theme as example)
Wordpress 2.6.3 and below work properly on the same server returning correct headers, even tested Wordpress 2.7 on another server and it has the same problem
#4
@
16 years ago
I can confirm this as well with the same permalink structure. Except for me it shows a blank page not trying to use a template at all. No errors in the logs either.
#5
follow-up:
↓ 10
@
16 years ago
Yeah, with the non-standard permalink with %category% the behaviour is to show "There's no articles in this category yet" whether it's a category or not.
Whether it's a big deal or not probably depends on what your theme does in those instances, and whether you're really that bothered about 404s being sent.
#6
@
16 years ago
Note that 2.7 does not issue a 404 if the category exists but has no posts. Prior to 2.7 404 is returned for this case.
#8
@
16 years ago
Yes, it should 404 if it doesn't exist. I just mentioned the new behavior in case it applies.
#10
in reply to:
↑ 5
@
16 years ago
Replying to mrmist:
Yeah, with the non-standard permalink with %category% the behaviour is to show "There's no articles in this category yet" whether it's a category or not.
Whether it's a big deal or not probably depends on what your theme does in those instances, and whether you're really that bothered about 404s being sent.
Whether or not the theme gives a blank page or not is the way the theme is coded, I've tried it with several themes now diagnosing the problem
Starting to become an issue for me as I've just switched a Joomla site over to Wordpress and Google isnt ditching the old links as they arent returning 404's
Also, if you type
example.com/acategorythatdoesexist/somepageorpostnothere
It'll return a 404 properly