Guest User

Untitled

a guest
Dec 17th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. # BEGIN WPSuperCache
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. #If you serve pages from behind a proxy you may want to change'RewriteCond %{HTTPS} on' to something more sensible
  6. AddDefaultCharset UTF-8
  7. RewriteCond %{REQUEST_URI} !^.*[^/]$
  8. RewriteCond %{REQUEST_URI} !^.*//.*$
  9. RewriteCond %{REQUEST_METHOD} !POST
  10. RewriteCond %{QUERY_STRING} !.*=.* [OR]
  11.  
  12. # --- these are the conditions I added ------------------
  13. RewriteCond %{QUERY_STRING} .*gclid.* [NC,OR]
  14. RewriteCond %{QUERY_STRING} .*utm_expid.* [NC]
  15. # --------------------------------------------------
  16.  
  17. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  18. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9"]+ [NC]
  19. RewriteCond %{HTTP:Profile} !^[a-z0-9"]+ [NC]
  20. RewriteCond %{HTTP:Accept-Encoding} gzip
  21. RewriteCond %{HTTPS} on
  22. RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f
  23. RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz" [L]
Add Comment
Please, Sign In to add comment