[wp-trac] [WordPress Trac] #20109: Valid htaccess rule causes 404 after upgrade to 3.3.1
WordPress Trac
noreply at wordpress.org
Mon Oct 27 02:36:16 UTC 2014
#20109: Valid htaccess rule causes 404 after upgrade to 3.3.1
-------------------------------------------+------------------------------
Reporter: ronnieg | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 3.3.1
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+------------------------------
Comment (by ronnieg):
Yes, I can still reproduce the issue. I just restored those same htaccess
rules, immediately before the WP rules just as before and as shown below.
I then re-tried the same url as in the original report, and same result.
Header returned is 404 per Firebug net trace below, yet proper page
results are returned. Site is currently on WP 4.0.
The original purpose and need for those rewrite rules is no longer
applicable, at least on my site, so normal is probably proper priority.
However, the issue remains: If a 404 header is being returned, and Firebug
can see it, why can't WP? And why is a 404 page not being returned? And at
the root of this issue: Why and where is a 404 header being generated at
all when the page actually exists and is being rendered? I think part of
the reason it hasn't been reported again is that probably very few WP site
owners would be using and monitoring Webmaster tools like I do, so it
could be happening but would never be noticed since the correct page is
still being rendered so no red flags.
.htaccess:
{{{
RewriteRule ^city(.*) - [L]
RewriteRule ^areas(.*) - [L]
########## End 301 Rewrite Rules for DenverHomeValue.com ##########
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
###############################################
}}}
Firebug says:
[[Image(http://dev1.denverhomevalue.com/wp-
content/uploads/404_issue.jpg)]]
Resulting page displayed:
[[Image(http://dev1.denverhomevalue.com/wp-
content/uploads/404_result.jpg)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20109#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list