Answer the question
In order to leave comments, you need to log in
How to make a separate 404 for certain files?
There is a standard WordPress .htaccess
# 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
#для статики отдельную 404
<FilesMatch "\.(gif|jpe?g|png|ico|js|css)$">
#ErrorDocument 404 /small-image-or-blank-file.gif
ErrorDocument 404 "<h1>404 error! File not found!</h1>"
</FilesMatch>
Answer the question
In order to leave comments, you need to log in
And what exactly is stopping you?
RewriteCond %{QUERY_STRING} (^|&)s\=blabla($|&)
RewriteRule ^where$ /blabla? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question