.htaccess 902 B

123456789101112131415161718192021222324
  1. <FilesMatch ^(composer\.(json|lock))$>
  2. Deny from all
  3. </FilesMatch>
  4. RewriteEngine on
  5. #RewriteCond %{HTTP_HOST} ^www\.dominio\.com$
  6. #RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  7. #RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  8. #RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  9. #RewriteRule ^(.*)$ https://dominio.com/$1 [R=301,L]
  10. #RewriteCond %{HTTPS} !^on$
  11. #RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  12. #RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  13. #RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  14. #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  15. # if a directory or a file exists, use it directly
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. # otherwise forward it to index.php
  19. RewriteRule . index.php