123456789101112131415161718192021222324252627 |
- #RewriteEngine On
- #RewriteBase /
- #RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
- #RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
- #<FilesMatch "\.mp3$">
- # order Allow, Deny
- # Allow from localhost
- # Deny From All
- #</FilesMatch>
- #RewriteRule \.(mp3|m4a)$ - [F]
- #Options -MultiViews
- #RewriteEngine On
- #RewriteCond %{REQUEST_FILENAME} !-d
- #RewriteCond %{REQUEST_FILENAME} !-f
- #RewriteRule ^([^\.]+)$ $1.html [NC,L]
- #PRODUCTION remove extension and add trailing backslash
- #RewriteEngine On
- #RewriteCond %{REQUEST_FILENAME} !-f
- #RewriteRule ^([^/]+)/$ $1.html
- #RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html
- #RewriteCond %{REQUEST_FILENAME} !-f
- #RewriteCond %{REQUEST_FILENAME} !-d
- #RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
- #RewriteRule (.*)$ /$1/ [R=301,L]
|