Skip to content

Commit 8a9d2f3

Browse files
authored
Merge pull request #181 from dotkernel/issue-169
updated .htaccess
2 parents 83debac + 9d8d9c9 commit 8a9d2f3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎public/.htaccess‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
RewriteEngine On
2+
3+
# Block known spam/probe queries on the root URL -> 404
4+
RewriteCond %{REQUEST_URI} ^/$
5+
RewriteCond %{QUERY_STRING} ^post_type=wfacp_checkout$ [OR]
6+
RewriteCond %{QUERY_STRING} ^rest_route
7+
RewriteRule ^$ - [R=404,L]
8+
29
# The following rule allows authentication to work with fast-cgi
310
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
411
# The following rule tells Apache that if the requested filename

0 commit comments

Comments
 (0)