Options -Indexes Options +FollowSymLinks DirectoryIndex index.php index.html ErrorDocument 404 /404.php AddDefaultCharset utf-8 RewriteEngine on RewriteRule ?page_id=177 http://nwteh.ru/clauses/sportivnye-pokrytiya-i-materialy/$1 [R=301,L] RewriteRule ?p=408 http://nwteh.ru/clauses/sportivnye-pokrytiya-i-materialy/modulnye-pokrytiya/$1 [R=301,L] RewriteRule ?p=433 http://nwteh.ru//clauses/sportivnye-pokrytiya-i-materialy/vpm-1300-membrana/$1 [R=301,L] RewriteCond %{HTTP:Authorization} !^$ RewriteCond %{REQUEST_URI} ^/shop/1c/.* RewriteRule ^(.*)$ shop/1c/?auth=%{HTTP:Authorization}&%{QUERY_STRING} RewriteRule ^(.*)sitemap.xml$ index.php?rewrite=sitemap.xml [QSA] RewriteRule ^(&*)(.*)/$ index.php?rewrite=$2 [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(&*)(.*)$ index.php?rewrite=$2 [QSA] RewriteRule ^index.php\/(.*)$ index.php?rewrite=index.php/$1 [QSA] # If-Modified-Since (if php is not installed as cgi then comment lines below) RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}] RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}] Header set Cache-Control "max-age=864000"