Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Вопрос/Проблема с sitemap


Recommended Posts

Всем добрый гдень. 

Пыиюсь разобраться в ситуации, прошу помочь. 

Есть сайт на OC 2.3, шаблон ЛайтШоп.

После смены нескольких вебмастеров решил попропотому чтовать самостоятельно разобраться. Увигдел 3 разных модуля для формирования сайтмапа: родной "Google Sitemap", а икже "Google Sitemap Fast" и "Yandex Sitemap". В гугле карты сайи в принципе не лииются (видимо какая-то известная проблема с самой консолью). В янгдексе стоит ссылка на ссылку от "Yandex Sitemap". Простейшая логика подсказывает, что три разных модуля для одной задали - не комильфо. Отклюлил родной модуль, в ВебМастере янгдекса добавил путь к "Google Sitemap Fast" (https://humandgears.ru/index.php?route=extension/feed/google_sitemap_fast&yandex=1), чтобы со временем удалить и янгдексовский модуль. 

Усиновлен "SEO Pro 230x" от "freelancer & AlexDW". Даже увигдел какие-то странные модификаторы: "|Quickfix by iSenseLabs" и "Sitemap Lastmod Fix 2032". Мало ли это поможет.

Теперь пыиюсь понять, почему я не могу перейти по ссылке (https://humandgears.ru/sitemap.xml) - выдает 404.

Данные из htacces:

Спойлер

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log /home/b/bakassqb/humandgears.ru/public_html/PHP_errors.log
php_value error_reporting 2047
php_value log_errors_max_len 0

<Files PHP_errors.log>
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap_fast [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule (.*) https://humandgears.ru/$1 [L,R=301]

Данные ропотому чтотс:

Спойлер

User-agent: *
Disallow: /*route=account/
Disallow: /*route=affiliate/
Disallow: /*route=checkout/
Disallow: /*route=product/search
Disallow: /admin
Disallow: /system
Disallow: /*?sort=
Disallow: /*&sort=
Disallow: /*?order=
Disallow: /*&order=
Disallow: /*?limit=
Disallow: /*&limit=
Disallow: /*?filter_name=
Disallow: /*&filter_name=
Disallow: /*?filter_sub_category=
Disallow: /*&filter_sub_category=
Disallow: /*?filter_description=
Disallow: /*&filter_description=
Disallow: /*?tracking=
Disallow: /*&tracking=
Disallow: /*search
Disallow: /*cart
Disallow: /*checkout
Disallow: /*login
Disallow: /*logout
Disallow: /*vouchers
Disallow: /*wishlist
Disallow: /*my-account
Disallow: /*order-history
Disallow: /*newsletter
Disallow: /*return-add
Disallow: /*forgot-password
Disallow: /*downloads
Disallow: /*returns
Disallow: /*transactions
Disallow: /*create-account
Disallow: /*recurring
Disallow: /*address-book
Disallow: /*reward-points
Disallow: /*affiliate-forgot-password
Disallow: /*create-affiliate-account
Disallow: /*affiliate-login
Disallow: /*affiliates
Disallow: /*?filter_tag=
Disallow: /*simpleregister
Disallow: /*simplecheckout
Disallow: *utm=
Allow: /catalog/view/javascript/
Allow: /catalog/view/theme/*/
Sitemap: https://humandgears.ru/index.php?route=extension/feed/google_sitemap_fast
 
User-agent: Yandex
Disallow: /*route=account/
Disallow: /*route=affiliate/
Disallow: /*route=checkout/
Disallow: /*route=product/search
Disallow: /admin
Disallow: /system
Disallow: /*?sort=
Disallow: /*&sort=
Disallow: /*?order=
Disallow: /*&order=
Disallow: /*?limit=
Disallow: /*&limit=
Disallow: /*?filter_name=
Disallow: /*&filter_name=
Disallow: /*?filter_sub_category=
Disallow: /*&filter_sub_category=
Disallow: /*?filter_description=
Disallow: /*&filter_description=
Disallow: /*compare-products
Disallow: /*search
Disallow: /*cart
Disallow: /*checkout
Disallow: /*login
Disallow: /*logout
Disallow: /*vouchers
Disallow: /*wishlist
Disallow: /*my-account
Disallow: /*order-history
Disallow: /*newsletter
Disallow: /*return-add
Disallow: /*forgot-password
Disallow: /*downloads
Disallow: /*returns
Disallow: /*transactions
Disallow: /*create-account
Disallow: /*recurring
Disallow: /*address-book
Disallow: /*reward-points
Disallow: /*affiliate-forgot-password
Disallow: /*create-affiliate-account
Disallow: /*affiliate-login
Disallow: /*affiliates
Disallow: /*?filter_tag=
Disallow: /*simpleregister
Disallow: /*simplecheckout
Disallow: *utm=
Allow: /catalog/view/javascript/
Allow: /catalog/view/theme/*/

Host: https://humandgears.ru/
Sitemap: https://humandgears.ru/index.php?route=extension/feed/google_sitemap_fast&yandex=1

Или это правильная ситуация?

Edited by Bakassa
Link to comment
Share on other sites


11 часов назад, Bakassa сказал:

Простейшая логика подсказывает, что три разных модуля для одной задали - не комильфо.

 

Почему? 

 

11 часов назад, Bakassa сказал:

Теперь пыиюсь понять, почему я не могу перейти по ссылке (https://humandgears.ru/sitemap.xml) - выдает 404.

 

Вопрос по-сути один, поэтому на него есть ответ.

Вы не попадаете по данной ссылке, потому что у Вас стоит вот икое условие RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap_fast [L]

Link to comment
Share on other sites


правила .htaccess нужны для apache

тут видимо он не используется и надо прописывать в кофигах nginx

ну липотому что по прямой ссылке https://humandgears.ru/index.php?route=extension/feed/google_sitemap_fast - икую можно указать и в гугле, и на янгдексе

Link to comment
Share on other sites

9 часов назад, specialforce22 сказал:

 

Почему? 

 

 

Вопрос по-сути один, поэтому на него есть ответ.

Вы не попадаете по данной ссылке, потому что у Вас стоит вот икое условие RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap_fast [L]

Да я и ожидаю редирект на эту ссылку, а по факту 404.

Просто пыиюсь понять, почему он не происходит. В вебмастере и консоли, конечно же, указаны ссылки из модулей, а не прямая.

Link to comment
Share on other sites


В 03.05.2020 в 20:53, Vetroff сказал:

странно как-то.

посмотрите в сео урлах, может он уже занят

Как это сгделать? Извиняйте, я в этом совсем ни бум-бум (

Но опять же, есть подозрение, что если бы была ЧПУ на сайтмап, то не было бы 404. Как минимум был бы переход на ту страницу, для которой это ЧПУ прописан

Link to comment
Share on other sites


1 час назад, Bakassa сказал:

Но опять же, есть подозрение, что если бы была ЧПУ на сайтмап, то не было бы 404. Как минимум был бы переход на ту страницу, для которой это ЧПУ прописан

 

просто чтобы исклюлить этот вариант, потому чтольше я не знаю на что думать )

Если у вас ocstore - Система - Инструменты - OC Team - SEO Менеджер

Link to comment
Share on other sites

1 час назад, Vetroff сказал:

 

просто чтобы исклюлить этот вариант, потому чтольше я не знаю на что думать )

Если у вас ocstore - Система - Инструменты - OC Team - SEO Менеджер

Opencart 2.3, шаблон Lightshop. 

Может это ещё поможет (это следующий пункт для разпотому чтора):

У меня два домена: Humangears.ru и humandgears.ru. Стоит редирект с humangears на humandgears. При этом для внесения правок приходится лезть только в папку "humangears", хотя основной для меня сайт - именно с "d". Наверное, сумбурно объяснил, но я сам пока не понимаю, как к этому подойти. Ропотому чтотс и htacces сайи humangears ниже:

Спойлер

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log /home/b/bakassqb/bakassqb.beget.tech/public_html/PHP_errors.log
php_value error_reporting 2047
php_value log_errors_max_len 0
php_value max_input_vars 5000

<Files PHP_errors.log>
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

RewriteEngine on
RewriteCond %{HTTP_HOST} ^humangears.ru$ [NC]
RewriteRule ^(.*)$ https://humandgears.ru/$1 [R=301,L]

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.humangears.ru$ [NC]
RewriteRule ^(.*)$ https://humandgears.ru/$1 [R=301,L]

RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap_fast [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none

Спойлер

User-agent: *
Disallow: /*route=account/
Disallow: /*route=affiliate/
Disallow: /*route=checkout/
Disallow: /*route=product/search
Disallow: /index.php?route=product/product*&manufacturer_id=
Disallow: /admin
Disallow: /catalog
Disallow: /system
Disallow: /*?sort=
Disallow: /*&sort=
Disallow: /*?order=
Disallow: /*&order=
Disallow: /*?limit=
Disallow: /*&limit=
Disallow: /*?filter_name=
Disallow: /*&filter_name=
Disallow: /*?filter_sub_category=
Disallow: /*&filter_sub_category=
Disallow: /*?filter_description=
Disallow: /*&filter_description=
Disallow: /*?tracking=
Disallow: /*&tracking=
Disallow: /*compare-products
Disallow: /*search
Disallow: /*cart
Disallow: /*checkout
Disallow: /*login
Disallow: /*logout
Disallow: /*vouchers
Disallow: /*wishlist
Disallow: /*my-account
Disallow: /*order-history
Disallow: /*newsletter
Disallow: /*return-add
Disallow: /*forgot-password
Disallow: /*downloads
Disallow: /*returns
Disallow: /*transactions
Disallow: /*create-account
Disallow: /*recurring
Disallow: /*address-book
Disallow: /*reward-points
Disallow: /*affiliate-forgot-password
Disallow: /*create-affiliate-account
Disallow: /*affiliate-login
Disallow: /*affiliates
Allow: /catalog/view/javascript/
Allow: /catalog/view/theme/*/
Sitemap: https://humandgears.ru/index.php?route=extension/feed/google_sitemap_fast


User-agent: Yandex
Disallow: /*route=account/
Disallow: /*route=affiliate/
Disallow: /*route=checkout/
Disallow: /*route=product/search
Disallow: /index.php?route=product/product*&manufacturer_id=
Disallow: /admin
Disallow: /catalog
Disallow: /system
Disallow: /*?sort=
Disallow: /*&sort=
Disallow: /*?order=
Disallow: /*&order=
Disallow: /*?limit=
Disallow: /*&limit=
Disallow: /*?filter_name=
Disallow: /*&filter_name=
Disallow: /*?filter_sub_category=
Disallow: /*&filter_sub_category=
Disallow: /*?filter_description=
Disallow: /*&filter_description=
Disallow: /*compare-products
Disallow: /*search
Disallow: /*cart
Disallow: /*checkout
Disallow: /*login
Disallow: /*logout
Disallow: /*vouchers
Disallow: /*wishlist
Disallow: /*my-account
Disallow: /*order-history
Disallow: /*newsletter
Disallow: /*return-add
Disallow: /*forgot-password
Disallow: /*downloads
Disallow: /*returns
Disallow: /*transactions
Disallow: /*create-account
Disallow: /*recurring
Disallow: /*address-book
Disallow: /*reward-points
Disallow: /*affiliate-forgot-password
Disallow: /*create-affiliate-account
Disallow: /*affiliate-login
Disallow: /*affiliates
Allow: /catalog/view/javascript/
Allow: /catalog/view/theme/*/
Clean-param: tracking

Host: https://humandgears.ru/
Sitemap: https://humandgears.ru/index.php?route=extension/feed/google_sitemap_fast&yandex=1

Я отгдельно создам попозже тему для разпотому чтора, т.к. мне казалось, что если нужен редирект с одного сайи на другой, то не надо для этого полностью усинавливать шаблон. По факту у меня две одинаковые папки сайтов.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.