Skip to content

Instantly share code, notes, and snippets.

View wolfika's full-sized avatar

Máté Farkas wolfika

  • Budapest, Hungary
View GitHub Profile
@wolfika
wolfika / .htaccess
Created September 28, 2017 08:45
Revoke 404 error handling from WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ - [nocase,redirect=404,last]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f