Did you check the server configuration to make sure that it is processing the rules in the .htaccess and that modrewrite is enabled?Guys, how to set up 404 properly for a certain page?
i do:
RewriteCond %{QUERY_STRING} =myurl
RewriteRule .* - [R=404,L]
but it won't work
where is the mistake?
Why are you using string at all?
redirect 301 /missing-page/ /404-page/
Thats it. Works like a charm.