RewriteEngine on
<Files 403.shtml>
order allow,deny
allow from all
</Files>
Rewritecond %{http_host} ^w3spot.com [nc]
Rewriterule ^(.*)$ http://www.w3spot.com/$1 [r=301,nc]
RewriteRule ^([0-9]*)/([a-zA-Z0-9\-\_\.]+)\.shtml$ index.php?vid=$1&name=$2 [NC,L]
RewriteRule ^([0-9]*)/([a-zA-Z0-9\-\_\.]+)/([0-9]*)/([a-zA-Z0-9\-\_\.]+)\.shtml$ index.php?vid=$1&name=$2&ID=$3&topic=$4 [NC,L]
RewriteRule ^([0-9]*)/([a-zA-Z0-9\-\_\.]+)/([0-9]*)/([a-zA-Z0-9\-\_\.]+)/page-([a-zA-Z0-9\-\_\.]+)\.shtml$ index.php?vid=$1&name=$2&ID=$3&topic=$4&start=$5 [NC,L]
RewriteRule ^([0-9]*)/([a-zA-Z0-9\-\_\.]+)/([0-9]*)/([a-zA-Z0-9\-\_\.]+)/([0-9]*)/([a-zA-Z0-9\-\_\.]+)\.shtml$ index.php?vid=$1&name=$2&ID=$3&topic=$4&attachid=$5&filename=$6 [NC,L]
RewriteRule ^tags/([a-zA-Z0-9\-\_\.]+)\.shtml$ index.php?sort=$1 [NC,L]
RewriteRule ^tags/([a-zA-Z0-9\-\_\.]+)/page-([a-zA-Z0-9\-\_\.]+)\.shtml$ index.php?sort=$1&start=$2 [NC,L]
RewriteRule ^contact\.php$ index.php?contact=en [L,QSA,NC]
RewriteRule ^privacy\.php$ index.php?privacy=en [L,QSA,NC]
RewriteRule ^var/sitemap-for-([a-zA-Z0-9]+)\.xml$ var/sitemap-for-$1.php [L,QSA,NC]
<IfModule mod_headers.c>
Header unset Pragma
FileETag None
Header unset ETag
<FilesMatch "\.(ico|jpg|jpeg|gif|png)$">
Header set Cache-Control "max-age=2419200, public"
</FilesMatch>
<FilesMatch "\.(html|htm|shtml)$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>
</IfModule>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
