nguyenphuongdong/NUKEVIET4/master/.htaccess
#nukeviet
<Files ~ ".(htm|html|css|js|php)$">
AddDefaultCharset UTF-8
</Files>
<Files .htaccess>
order allow,deny
deny from all
</Files>
<Files config.php>
order allow,deny
deny from all
</Files>
<IfModule mod_deflate.c>
<FilesMatch ".(css|js|xml|ttf)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
<FilesMatch ".(js|css|xml|ttf)$">
Header append Vary Accept-Encoding
</FilesMatch>
<FilesMatch ".(doc|pdf|swf)$">
Header set X-Robots-Tag "noarchive, nosnippet"
</FilesMatch>
<FilesMatch ".(js|css|jpe?g|png|gif|swf|svg|ico|woff|ttf|xsl|pdf|flv|mp3|mp4)(?[0-9]{9,11})?$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
</IfModule>
##################################################################################
#nukeviet_rewrite_start //Please do not change the contents of the following lines
##################################################################################
#Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /NUKEVIET4.COM/
RewriteCond %{REQUEST_FILENAME} /robots.txt$ [NC]
RewriteRule ^ robots.php?action=%{HTTP_HOST} [L]
RewriteRule ^(.*?)sitemap.xml$ index.php?nv=SitemapIndex [L]
RewriteRule ^(.*?)sitemap-([a-z]{2}).xml$ index.php?language=$2&nv=SitemapIndex [L]
RewriteRule ^(.*?)sitemap-([a-z]{2}).([a-zA-Z0-9-]+).xml$ index.php?language=$2&nv=$3&op=sitemap [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)(/|.html)$ index.php
RewriteRule (.*)tag/([^?]+)$ index.php
RewriteRule ^seek/q=([^?]+)$ index.php?nv=seek&q=$1 [L]
RewriteRule ^search/q=([^?]+)$ index.php?nv=news&op=search&q=$1 [L]
RewriteRule ^([a-zA-Z0-9-]+)/search/q=([^?]+)$ index.php?nv=$1&op=search&q=$2 [L]
RewriteRule ^([a-zA-Z0-9-/]+)/([a-zA-Z0-9-]+)$ /NUKEVIET4.COM/$1/$2/ [L,R=301]
RewriteRule ^([a-zA-Z0-9-]+)$ /NUKEVIET4.COM/$1/ [L,R=301]
</IfModule>
#nukeviet_rewrite_end
##################################################################################
On Github License
Files