Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. RewriteEngine on
  2.  
  3. RewriteCond %{HTTP_HOST} !^
  4. RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  5. RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  6. RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  7.  
  8. #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  9.  
  10.  
  11. RewriteCond %{HTTPS} off
  12. RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]
  13. RewriteCond %{REQUEST_URI} !public/
  14. RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  15. RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  16. RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  17. RewriteRule (.*) /public/$1 [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement