Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
- RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
- RewriteCond %{HTTPS} !on
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
- RewriteRule sitemap.xml$ sitemap.php [L]
- RewriteRule ^genre/(.*)/(.*)\/$ all_genre.php?genre_id=$1&genre_name=$2 [L]
- RewriteRule ^page/(.*)\/$ page.php?page=$1 [L]
- #RewriteRule ^ydl/(.*)/(.*)$ do.php?sub=$1&id=$2 [L]
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^mp3/(.*)\.html$ search.php?q=$1 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^album/(.*)/(.*)\.html$ album.php?album=$1&album_slug=$2 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^artist/(.*)/(.*)\.html$ artist.php?artist=$1&artist_slug=$2 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^download/(.*)/(.*)\.html$ download.php?dl=$1&dl_slug=$2 [QSA,L]
- </IfModule>
- ErrorDocument 404 /404.php
- <IfModule mod_security.c>
- SecFilterEngine Off
- </IfModule>
- <IfModule mod_headers.c>
- Header set Connection keep-alive
- # 1 year
- ExpiresActive On
- ExpiresByType image/jpg "access 1 year"
- ExpiresByType image/jpeg "access 1 year"
- ExpiresByType image/gif "access 1 year"
- ExpiresByType image/png "access 1 year"
- ExpiresByType text/css "access 1 month"
- ExpiresByType text/html "access 1 month"
- ExpiresByType application/pdf "access 1 month"
- ExpiresByType text/x-javascript "access 1 month"
- ExpiresByType application/x-shockwave-flash "access 1 month"
- ExpiresByType image/x-icon "access 1 year"
- ExpiresDefault "access 1 month"
- # 2 DAYS
- <FilesMatch "\.(xml|txt)$">
- Header set Cache-Control "max-age=172800, public, must-revalidate"
- </FilesMatch>
- # 45 MIN
- <FilesMatch "\.(html|htm)$">
- Header set Cache-Control "max-age=2700, public, must-revalidate"
- </FilesMatch>
- # No cache
- <FilesMatch "\.(pl|php|cgi|spl)$">
- Header unset Cache-Control
- Header unset Expires
- Header unset Last-Modified
- FileETag None
- Header unset Pragma
- </FilesMatch>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement