: Apache rewrite rule that matches a specific query string I need to rewrite a specific wordpress url to a 404 error: ?page_id=15 => 404 How can I match the query string? Apparently Apache doesn't
I need to rewrite a specific wordpress url to a 404 error:
?page_id=15 => 404
How can I match the query string? Apparently Apache doesn't feed that to the rewrite mod...
More posts by @Carla537
1 Comments
Sorted by latest first Latest Oldest Best
Using mod_rewrite, you can match a query string using this:
RewriteCond %{QUERY_STRING} page_id=15
RewriteRule .* - [R=404]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.