Помогите, столько несуществующих страниц скопилось :mad:вот что в .htaccess
Код |
---|
Options -Indexes
Options +FollowSymlinks
# FAQ // вопрос ответ
RewriteRule ^faq/([0-9a-zA-Z][0-9a-zA-Z_\-]+)\.html$ index.php?page=faq&id=$1 [L]
# отзывы клиентов
RewriteRule ^review/([0-9a-zA-Z][0-9a-zA-Z_\-]+)\.html$ index.php?page=review&id=$1 [L]
# ModRewrite ->
RewriteEngine on
# редирект на основной адрес
RewriteCond %{HTTP_HOST} ^www\.shkaf-market.ru\.ru
RewriteRule ^(.*)$ shkaf-market.ru/$1 [R=permanent,L]
# Yandex - подтверждение прав
#RewriteRule ^yandex_.html$ - [L]
# общие правила
RewriteRule ^index\.html$ / [L,R=301]
RewriteRule ^([0-9A-Za-z_/\-]*)/index\.html$ /$1/ [L,R=301]
RewriteRule ^([0-9A-Za-z_\-]+)$ /$1/ [L,R=301]
RewriteRule ^([0-9A-Za-z_/\-]+/[0-9A-Za-z_\-]+)$ /$1/ [L,R=301]
RewriteRule ^([0-9A-Za-z_\-]+)/[/]+$ /$1/ [L,R=301]
# redirect
RewriteRule ^redirect/$ /actions.php?action=main-redirect [R=301]
# капча
RewriteRule ^kcaptcha[1-9]?.gif$ /admin/kcaptcha/index.php [QSA]
# карта сайта
RewriteRule ^sitemap.xml$ /actions.php?action=map-sitemap [L]
# регистрация и авторизация пользователей
RewriteRule ^login.html$ /users/ [R=301,L]
RewriteRule ^login[/]?$ /users/ [R=301,L]
RewriteRule ^user_logout.html$ /actions.php?action=users-logout [L]
RewriteRule ^user_logouttotal.html$ /actions.php?action=users-logouttotal [L]
RewriteRule ^users/confirm.html$ /actions.php?action=users-activate [QSA]
RewriteRule ^users[/]?$ /index.php?page=users [QSA]
RewriteRule ^users/([0-9a-zA-Z][0-9a-zA-Z_\-]+)\.html$ /index.php?page=users&id=$1 [QSA]
# поиск по каталогу
RewriteRule ^search/$ /index.php?page=catalog&search=1 [QSA]
RewriteRule ^query/$ /content/modules/shop/out/query.phtml [QSA]
# новинки и спецпредложения
RewriteRule ^new/$ /index.php?page=catalog&new=1 [L]
RewriteRule ^special/$ /index.php?page=catalog&special=1 [L]
# корзина
RewriteRule ^basket/$ index.php?page=catalog&basket=1 [QSA]
RewriteRule ^basket/add/([0-9a-zA-Z][0-9a-zA-Z\-]+)\.html$ /actions.php?action=shop-basketadd&item=$1 [L]
RewriteRule ^basket/delete/([0-9a-zA-Z][0-9a-zA-Z\-]+)\.html$ /actions.php?action=shop-basketdelete&item=$1 [L]
RewriteRule ^basket/update/$ /actions.php?action=shop-basketupdate [QSA]
RewriteRule ^basket/send/$ /actions.php?action=shop-basketsend [QSA]
# страницы каталога
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/1\.html$ /catalog/$1/ [R=301,L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/1\.html$ /catalog/$1/ [R=301,L]
RewriteRule ^catalog/sort_by_([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]\.html$ /actions.php?action=shop-sort&sort=$1 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9][/]?$ /index.php?page=catalog&num=0&categoryID=$1&brandID=0&itemID=0 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/([1-9][0-9]*)\.html$ /index.php?page=catalog&num=$2&categoryID=$1&brandID=0&itemID=0 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/all\.html$ /index.php?page=catalog&num=all&categoryID=$1&brandID=0&itemID=0 [L]
RewriteRule ^catalog/brand_([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9][/]?$ /index.php?page=catalog&num=0&categoryID=0&brandID=$1&itemID=0 [L]
RewriteRule ^catalog/brand_([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/([1-9][0-9]*)\.html$ /index.php?page=catalog&num=$2&categoryID=0&brandID=$1&itemID=0 [L]
RewriteRule ^catalog/brand_([0-9a-zA-Z][a-zA-Z0-9_]*[a-zA-Z0-9]/all\.html$ /index.php?page=catalog&num=all&categoryID=0&brandID=$1&itemID=0 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]_([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9][/]?$ /index.php?page=catalog&num=0&categoryID=$1&brandID=$2&itemID=0 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]_([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/([1-9][0-9]*)\.html$ /index.php?page=catalog&num=$3&categoryID=$1&brandID=$2&itemID=0 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]_([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/all\.html$ /index.php?page=catalog&num=all&categoryID=$1&brandID=$2&itemID=0 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/([0-9a-zA-Z][0-9a-zA-Z\-]+)\.html$ /index.php?page=catalog&categoryID=$1&brandID=0&itemID=$2 [L]
RewriteRule ^catalog/([0-9a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]/([a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]_([0-9a-zA-Z][0-9a-zA-Z\-]+)\.html$ /index.php?page=catalog&categoryID=$1&brandID=$2&itemID=$3 [L]
# прайс-лист
RewriteRule ^catalog/price.xml$ /actions.php?action=shop-xml [L]
RewriteRule ^catalog/shops.dtd$ /content/modules/catalog/out/shops.dtd [L]
# статьи / полезные советы
RewriteRule ^consult/([0-9a-zA-Z][0-9a-zA-Z_\-]+)\.html$ /index.php?page=consult&id=$1 [L]
# лента новостей
RewriteRule ^news/page1.html$ /news/ [R=301,L]
RewriteRule ^news/pageall.html$ /index.php?page=news&num=all [L]
RewriteRule ^news/page([1-9][0-9]*)\.html$ /index.php?page=news&num=$1 [L]
RewriteRule ^news/([0-9a-zA-Z][0-9a-zA-Z_\-]+)\.html$ /index.php?page=news&id=$1 [L]
# обратная связь (feedback)
RewriteRule ^contacts/([0-9a-zA-Z][0-9a-zA-Z_\-]+)\.html$ /index.php?page=contacts&id=$1 [L]
# общие правила
RewriteRule ^([0-9A-Za-z_\-]+\.html)$ /index.php?page=$1 [L]
RewriteRule ^([0-9A-Za-z_/\-]+/[0-9A-Za-z_\-]+\.html)$ /index.php?page=$1 [L]
RewriteRule ^([0-9A-Za-z_/\-]+)/$ /index.php?page=$1 [L]
#RewriteRule ^([0-9A-Za-z_/\-]+[/]?)$ /index.php?page=$1 [L]
# <- ModRewrite
ErrorDocument 404 /404/index.html
ErrorDocument 403 /
php_flag magic_quotes_gpc on
php_value display_errors 1
|