[wp-trac] [WordPress Trac] #17246: Handling of HTTP 404 errors for non-existing files
WordPress Trac
noreply at wordpress.org
Mon May 4 13:32:28 UTC 2020
#17246: Handling of HTTP 404 errors for non-existing files
----------------------------+------------------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
----------------------------+------------------------------
Comment (by Hristo Sg):
Just a suggestion, can we simplu update the default .htaccess file
generated by WordPress in order not to process certain file types through
permalinks.
{{{
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress
filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ([^.]+\.(jpe?g|gif|bmp|png))$ - [END,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17246#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list