This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docroot/.htaccess b/docroot/.htaccess | |
index 9a73a3d..a48abe4 100644 | |
--- a/docroot/.htaccess | |
+++ b/docroot/.htaccess | |
@@ -69,6 +69,12 @@ AddEncoding gzip svgz | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
+ # Drop URL parameters for paths do not need them | |
+ RewriteCond %{THE_REQUEST} !help?|archive?|admin? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Drop URL parameters for paths do not need them | |
RewriteCond %{THE_REQUEST} \? | |
RewriteCond %{REQUEST_URI} !(^/help|/^admin|^archive) [NC] | |
RewriteCond %{QUERY_STRING} !itok=([0-9]+) | |
RewriteRule ^ %{REQUEST_URI} [L,R,QSD] |