I need to rewrite a specific WordPress URL to a 404 error:
?page_id=15
to 404
How can I match the query string? Apparently Apache doesn't feed that to the rewrite mod...
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.
Sign up to join this communityUsing mod_rewrite
, you can match a query string using this:
RewriteCond %{QUERY_STRING} page_id=15
RewriteRule .* - [R=404]