attiqfsd

Untitled

Apr 13th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteBase /
  4. RewriteCond %{HTTPS} on [OR]
  5. RewriteCond %{SERVER_PORT} ^443$ [OR]
  6. RewriteCond %{HTTP:X-Forwarded-Proto} https
  7. RewriteRule .* - [E=WPR_SSL:-https]
  8. RewriteCond %{HTTP:Accept-Encoding} gzip
  9. RewriteRule .* - [E=WPR_ENC:_gzip]
  10. RewriteCond %{REQUEST_METHOD} GET
  11. RewriteCond %{QUERY_STRING} =""
  12. RewriteCond %{HTTP:Cookie} !(wordpress_logged_in_.+|wp-postpass_|wptouch_switch_toggle|comment_author_|comment_author_email_) [NC]
  13. RewriteCond %{REQUEST_URI} !^(/(.+/)?feed/?|/(?:.+/)?embed/|/checkout/(.*)|/cart/|/wc-api/v(.*)|/(index\.php/)?wp\-json(/.*|$))$ [NC]
  14. RewriteCond %{HTTP_USER_AGENT} !^(facebookexternalhit).* [NC]
  15. RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}%{ENV:WPR_WEBP}.html%{ENV:WPR_ENC}" -f
  16. RewriteRule .* "/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}%{ENV:WPR_WEBP}.html%{ENV:WPR_ENC}" [L]
  17. </IfModule>
Add Comment
Please, Sign In to add comment