.htaccess 754 B

123456789101112131415161718192021222324252627
  1. #RewriteEngine On
  2. #RewriteBase /
  3. #RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  4. #RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
  5. #<FilesMatch "\.mp3$">
  6. # order Allow, Deny
  7. # Allow from localhost
  8. # Deny From All
  9. #</FilesMatch>
  10. #RewriteRule \.(mp3|m4a)$ - [F]
  11. #Options -MultiViews
  12. #RewriteEngine On
  13. #RewriteCond %{REQUEST_FILENAME} !-d
  14. #RewriteCond %{REQUEST_FILENAME} !-f
  15. #RewriteRule ^([^\.]+)$ $1.html [NC,L]
  16. #PRODUCTION remove extension and add trailing backslash
  17. #RewriteEngine On
  18. #RewriteCond %{REQUEST_FILENAME} !-f
  19. #RewriteRule ^([^/]+)/$ $1.html
  20. #RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html
  21. #RewriteCond %{REQUEST_FILENAME} !-f
  22. #RewriteCond %{REQUEST_FILENAME} !-d
  23. #RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
  24. #RewriteRule (.*)$ /$1/ [R=301,L]