- Автор темы
- #1
Добрый день!
Shop Script Lego SP: 6.2.2
Подскажите, пожалуйста, как удалить дубли на сайте? Примеры:
- /contact/ и /contact/cart/contact/
- /skidki/ и /contact/cart/contact/info/skidki/
- /oplata/ и /contact/cart/cart/info/oplata/
- /kurinye-tushki/ и /about/contact/contact/info/kurinye-tushki/
Т.е. к странице можно обратиться по 2-м чпу и в яндекс попали "левые" url
В .htaccess:
#catalog url's
RewriteRule ^catalog/(.*)$ index.php?catalog_hurl=$1 [L]
RewriteRule ^product/(.*)/$ index.php?product_hurl=$1/ [L]
RewriteRule ^news/(.*)/$ index.php?news=$1/ [L]
RewriteRule ^news/$ index.php?news_list [L]
RewriteRule ^pages/$ index.php?pages&pages= [L]
RewriteRule ^pages/(.*)/$ index.php?pages&pages=$1/ [L]
RewriteRule ^tags/(.*)/$ index.php?tags_hurl=$1/ [L]
RewriteRule ^brand/(.*)/(.*) index.php?brand=$1/$2 [L]
#information url's
RewriteRule info/(.*)$ index.php?aux_pages=$1 [L]
RewriteRule contact/&send_result=(.*)$ index.php?contact&send_result=$1 [L]
RewriteRule contact/$ index.php?contact [L]
RewriteRule service/$ index.php?aux_page=aux2 [L]
RewriteRule pricelist/([0-9]*)/$ index.php?show_price=$1 [L]
RewriteRule pricelist/$ index.php?show_price=yes [L]
RewriteRule ^price.xls$ core/core_xls.php [L]
RewriteRule feed.xml$ core/core_rss.php [L]
RewriteRule ^about/$ index.php?aux_page=aux1 [L]
RewriteRule grafik/$ index.php?aux_page=aux1 [L]
RewriteRule adress/$ index.php?aux_page=aux1 [L]
RewriteRule sitemap\.xml$ core/sitemap.php [L]
RewriteRule sitemap/$ index.php?sitemap [L]
#cart url's
RewriteRule add2cart/(.*)$ index.php?shopping_cart&add2cart=$1 [L]
RewriteRule cart/$ index.php?shopping_cart=yes [L]
RewriteRule cart/&remove=(.*)$ index.php?shopping_cart=yes&remove=$1 [L]
RewriteRule cart/&clear$ index.php?shopping_cart=yes&clear_cart=yes [L]
RewriteRule cart/order/$ index.php?order_custinfo=yes [L]
RewriteRule cart/order_placed/$ index.php?order_placement_result=1 [L]
RewriteRule printorder/$ core/core_printorder.php [L]
RewriteRule pd4/$ core/print_pd4.php [L]
Shop Script Lego SP: 6.2.2
Подскажите, пожалуйста, как удалить дубли на сайте? Примеры:
- /contact/ и /contact/cart/contact/
- /skidki/ и /contact/cart/contact/info/skidki/
- /oplata/ и /contact/cart/cart/info/oplata/
- /kurinye-tushki/ и /about/contact/contact/info/kurinye-tushki/
Т.е. к странице можно обратиться по 2-м чпу и в яндекс попали "левые" url
В .htaccess:
#catalog url's
RewriteRule ^catalog/(.*)$ index.php?catalog_hurl=$1 [L]
RewriteRule ^product/(.*)/$ index.php?product_hurl=$1/ [L]
RewriteRule ^news/(.*)/$ index.php?news=$1/ [L]
RewriteRule ^news/$ index.php?news_list [L]
RewriteRule ^pages/$ index.php?pages&pages= [L]
RewriteRule ^pages/(.*)/$ index.php?pages&pages=$1/ [L]
RewriteRule ^tags/(.*)/$ index.php?tags_hurl=$1/ [L]
RewriteRule ^brand/(.*)/(.*) index.php?brand=$1/$2 [L]
#information url's
RewriteRule info/(.*)$ index.php?aux_pages=$1 [L]
RewriteRule contact/&send_result=(.*)$ index.php?contact&send_result=$1 [L]
RewriteRule contact/$ index.php?contact [L]
RewriteRule service/$ index.php?aux_page=aux2 [L]
RewriteRule pricelist/([0-9]*)/$ index.php?show_price=$1 [L]
RewriteRule pricelist/$ index.php?show_price=yes [L]
RewriteRule ^price.xls$ core/core_xls.php [L]
RewriteRule feed.xml$ core/core_rss.php [L]
RewriteRule ^about/$ index.php?aux_page=aux1 [L]
RewriteRule grafik/$ index.php?aux_page=aux1 [L]
RewriteRule adress/$ index.php?aux_page=aux1 [L]
RewriteRule sitemap\.xml$ core/sitemap.php [L]
RewriteRule sitemap/$ index.php?sitemap [L]
#cart url's
RewriteRule add2cart/(.*)$ index.php?shopping_cart&add2cart=$1 [L]
RewriteRule cart/$ index.php?shopping_cart=yes [L]
RewriteRule cart/&remove=(.*)$ index.php?shopping_cart=yes&remove=$1 [L]
RewriteRule cart/&clear$ index.php?shopping_cart=yes&clear_cart=yes [L]
RewriteRule cart/order/$ index.php?order_custinfo=yes [L]
RewriteRule cart/order_placed/$ index.php?order_placement_result=1 [L]
RewriteRule printorder/$ core/core_printorder.php [L]
RewriteRule pd4/$ core/print_pd4.php [L]