Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
RewriteEngine On

# Block known spam/probe queries on the root URL -> 404
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^post_type=wfacp_checkout$ [OR]
RewriteCond %{QUERY_STRING} ^rest_route
RewriteRule ^$ - [R=404,L]

# The following rule allows authentication to work with fast-cgi
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# The following rule tells Apache that if the requested filename
Expand Down