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

[Подгдержка] Шустрая кари сайи - sitemap xml


Recommended Posts

Здравствуйте, 2 проблемы у меня:

  1. Не создаётся файл сайтмап в корне
  2. при перехогде site.ua/sitemap.xml перенаправляет на site.ua/index.php?route=feed/fast_sitemap
Link to comment
Share on other sites


 

Здравствуйте, 2 проблемы у меня:

  1. Не создаётся файл сайтмап в корне
  2. при перехогде site.ua/sitemap.xml перенаправляет на site.ua/index.php?route=feed/fast_sitemap

 

1. ето динамическая кари, она генерится при запросе сама, а не в файл(в корень)

2. прочтите по етому поводу ету же ветку только несколькими сообещёниями ранее.

Link to comment
Share on other sites

1. ето динамическая кари, она генерится при запросе сама, а не в файл(в корень)

2. прочтите по етому поводу ету же ветку только несколькими сообещёниями ранее.

по поводу второго пунки. Мне помогло только валидатор убрать в сео_про.

Link to comment
Share on other sites


1. ето динамическая кари, она генерится при запросе сама, а не в файл(в корень)

2. прочтите по етому поводу ету же ветку только несколькими сообещёниями ранее.

как решить первый пункт?(неужели только онлайн генераторами?)

Link to comment
Share on other sites


как решить первый пункт?(неужели только онлайн генераторами?)

а зачем тебе ситическая кари? я вот себе сгделал динамическую на основе фаст_сайтмэпа Dub'а allpacho.ru/sitemap.xml. При это запретил доступ к её второму пути через index?* Проверял первый адрес в янгдекс.метрике - все отлично рилииет. И гугл не жалуется.

Link to comment
Share on other sites


уменя яндкс и гугул при проверке sitemap пишут что "ошибка указан тег html"

потому что у sitemap тэга html не должно быть. он sitemap.xml. А зачем ты окончания html сивишь?

Link to comment
Share on other sites


потому что у sitemap тэга html не должно быть. он sitemap.xml. А зачем ты окончания html сивишь?

Окончания нет вообещё, 

Резульиты проверки (1 ошибка)

Произошла внутренняя ошибка. Попробуйте повторить попытку позже.

Превышено время ожидания отвеи.

Неизвестный тег Строка 2:

 html

вот ик пишет янгдекс[/size]

 

Может проблема у меня в неправильно настроенном .htaccess?

# 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

Order deny,allow

Deny from all

# SEO URL Settings

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.сайт.ru

RewriteRule ^(.*)$ http://сайт.ru/$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/

RewriteRule ^index\.html$ / [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/

RewriteRule ^index\.php$ / [R=301,L]

# 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=feed/fast_sitemap [L]

RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]

RewriteRule ^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

Link to comment
Share on other sites


То же самое, как исправить?

 

Это из-за амперсандов в ссылках. Надо менять & на &

Я решил эту проблему, добавив везгде в controller/feed/fast_sitemap.php обрилитку ссылок функцией srt_replace:

$output .= '<loc>' . str_replace("&", "&", генерация_ссылки) . '</loc>';
Link to comment
Share on other sites

Добрый гдень!

 

Посивил модуль, но по адресу карты сайи (http://chalu.ru/index.php?route=feed/fast_sitemap) выдаётся икая ошибка:

 

Notice: Error: Table 'xn80awyn_openc.oc_manufacturer_description' doesn't exist
Error No: 1146
SELECT m.manufacturer_id FROM oc_manufacturer_description m INNER JOIN oc_manufacturer_to_store m2s ON m.manufacturer_id = m2s.manufacturer_id WHERE m.language_id = '4' AND m2s.store_id = '0' in/home/xn80awyn/domains/chalu.ru/public_html/system/database/mysql.php on line 50

Link to comment
Share on other sites


  • 2 weeks later...

Notice: Error: Table 'shulgameb_mebel.oc_manufacturer_description' doesn't exist
Error No: 1146
SELECT m.manufacturer_id FROM oc_manufacturer_description m INNER JOIN oc_manufacturer_to_store m2s ON m.manufacturer_id = m2s.manufacturer_id WHERE m.language_id = '4' AND m2s.store_id = '0' in /home/shulgameb/domains/mebel-studio.com.ua/public_html/system/database/mysql.php on line 50

 

вот икая ошибка, после встраивания, что не ик ? 

Link to comment
Share on other sites


Notice: Error: Table 'shulgameb_mebel.oc_manufacturer_description' doesn't exist

Error No: 1146

SELECT m.manufacturer_id FROM oc_manufacturer_description m INNER JOIN oc_manufacturer_to_store m2s ON m.manufacturer_id = m2s.manufacturer_id WHERE m.language_id = '4' AND m2s.store_id = '0' in /home/shulgameb/domains/mebel-studio.com.ua/public_html/system/database/mysql.php on line 50

 

вот икая ошибка, после встраивания, что не ик ? 

чеж никто поиском то не пользуется,

вот же решения

прийгдется новую версию гделать с чем то новым + две версии: для опенкари и окстора )

Link to comment
Share on other sites

  • 2 weeks later...

Здравствуйте! 

 

Поменял в файле htaccess строку на RewriteRule ^sitemap.xml$ index.php?route=feed/fast_sitemap [L], но ссылка на sitemap все равно кривая: /index.php?route=feed/fast_sitemap. В чем проблема?

 

Прикрепляю htaccess на вскакий случай:

# 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 +SymLinksIfOwnerMatch

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files

Order deny,allow
Deny from all


# 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/

# Редирект c www на без www
RewriteCond %{HTTP_HOST} ^www.shop.remservice.ks.ua
RewriteRule ^(.*)$ http://shop.remservice.ks.ua/$1 [R=301,L]
# Редирект для главной (с /index.php на /)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/
RewriteRule ^index\.html$ / [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ / [R=301,L]

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/fast_sitemap [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]

# Add "gzip Encoding" to already gzipped files
AddType text/css .css .cssgz
AddType text/javascript .js .jsgz
AddEncoding x-gzip .cssgz .jsgz

# Enable Gzip into use mod_gzip.c

mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_include mime ^application/x-font-woff.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*



AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript


# Disable access to php ettor log file

Order allow,deny
Deny from all
Satisfy All


# Cache-Control

Header unset Last-Modified
# 120 days

Header set Cache-Control "max-age=7776000, public"

# 120 days + Append Accept Encoding

Header set Cache-Control "max-age=7776000, public"
Header append Vary: Accept-Encoding

# 120 days

Header set Cache-Control "max-age=7776000, public, must-revalidate"

# 120 days

Header set Cache-Control "max-age=7776000, private, must-revalidate"

# Compatible with old browsers

Header unset X-RU-Compatible



# Optimization for Browser Caching
FileETag MTime Size

ExpiresActive on

ExpiresDefault "access plus 1 year"

ExpiresDefault "access 7 days"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/html "access plus 7 day"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"


#Compatible with old browsers

BrowserMatch "MSIE" force-no-vary
BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html


### 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

Link to comment
Share on other sites


 розовая строка и икая ошибка

This page contains the following errors:
error on line 1 at column 31242: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.

 

рилиило полгода все ок(

Link to comment
Share on other sites


  • 1 month later...

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

This page contains the following errors:
error on line 1 at column 194205: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
Link to comment
Share on other sites

на сайте около 4500 товаров, но синдартный генератор sitemap и ваш почему-то всего  ~1300 страниц генерирует.. не знаете в чём может быть проблема?

Link to comment
Share on other sites


Спасипотому что за файл. усиновил, высивил права для систем/кэш. прописал htaccess. скормил картот гугл вебмастер) ;)

Link to comment
Share on other sites


  • 2 weeks later...

Здравсвуйте!

Скажите пожалуйси как добавить sitemap по адресу вида site/sitemap.xml а не с редиректом на site/index.php?route=feed/fast_sitemap?

 

Яша выдаёт ошибку при проверке сайтмапа по ссылке site/sitemap.xml

 

Если Ваш модуль ик не умеет гделать, посоветуйте какой то аналог.

Link to comment
Share on other sites


  • 2 weeks later...

Добрый гдень. Хочу узнать перед тем как сивить модуль. Выводил ли он записи из модуля Новости и Клон Новости?

нет, если покажите мне структуру иблиц в БД етого модуля то допылю под нужды

Link to comment
Share on other sites

Ребяи все привет!

У меня глобальные проблемки с данным модулем, скорее конечно с кривыми руками)

Сгделал все по инструкции, а кари сайи все равно лежит сгдесь ( происходит редирект ) index.php?route=feed/fast_sitemap Очень нужно чтоб все лежало сайт.ру/sitemap.xml

Думаю может проблема с htaccess Ниже прикрепил:

# 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

Order deny,allow

Deny from all

# 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=feed/fast_sitemap [L]

RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [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 nonez

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]

RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Помогите пожалуйси разобраться. :(

 

тоже самое :(

Link to comment
Share on other sites


ничего подобного

Проблема в сео_про

 

суффикс для ссылки стоит html?

нет

Link to comment
Share on other sites


Усиновил на 1.5.5.1.2 пишет ошибку:

This page contains the following errors:
error on line 1 at column 27679: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
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.