Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteCond %{HTTPS} on [OR]
- RewriteCond %{SERVER_PORT} ^443$ [OR]
- RewriteCond %{HTTP:X-Forwarded-Proto} https
- RewriteRule .* - [E=WPR_SSL:-https]
- RewriteCond %{HTTP:Accept-Encoding} gzip
- RewriteRule .* - [E=WPR_ENC:_gzip]
- RewriteCond %{REQUEST_METHOD} GET
- RewriteCond %{QUERY_STRING} =""
- RewriteCond %{HTTP:Cookie} !(wordpress_logged_in_.+|wp-postpass_|wptouch_switch_toggle|comment_author_|comment_author_email_) [NC]
- RewriteCond %{REQUEST_URI} !^(/(.+/)?feed/?|/(?:.+/)?embed/|/checkout/(.*)|/cart/|/wc-api/v(.*)|/(index\.php/)?wp\-json(/.*|$))$ [NC]
- RewriteCond %{HTTP_USER_AGENT} !^(facebookexternalhit).* [NC]
- RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}%{ENV:WPR_WEBP}.html%{ENV:WPR_ENC}" -f
- RewriteRule .* "/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}%{ENV:WPR_WEBP}.html%{ENV:WPR_ENC}" [L]
- </IfModule>
Add Comment
Please, Sign In to add comment