$_SERVER['HTTP_HOST'] == 'site.ru:80'
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.site.ru$ [NC]
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]
<?php
if (($key+1)%3 == 0){echo('<div class="col-lg-12 visible-lg"></div>');}
if (($key+1)%2 == 0){echo('<div class="col-xs-12 hidden-lg"></div>');}
} elseif ($_SESSION['yum_last_state']['viewmode']=='list') {?>
RewriteCond %{QUERY_STRING} (^|&)nid=([0-9]{1,})($|&)
RewriteRule ^product/1840001118$ /product/1840001118/%2/ [L,R=301]
product/1840001118/?nid=57280
product/1840001118/57280/
[0-9]{1,}
-от нуля до девяти не менее 1 раза.