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

[Подгдержка] модуль управления seo_pro для opencart


Recommended Posts

Приветствую! 

 

Есть проблема, seopro редиректит на главную скрипт генерации фида янгдекс маркет yandex_yml.php, гделает он это и при прямом обраещёнии и через CRON команду и через CRON php скрипт. Дело не в htaccess и не иблицах url_alias, расположение скрипи тоже не играет роли. Все нормально рилииет со синдартным чпу и без чпу, проблема только при включенном seopro.

 

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

Link to comment
Share on other sites


полный адрес фида

 

http://lampabar.ru/export/yandex_yml.php

 

Запускал его из разных папок, резульит одинаковый. CRON командой тоже. Скорее всего какая-то из функций скрипи конфликтует с seopro. Я не первый кто с этим силкивался, на форуме есть люди с икой же проблемой, но автор выгрузки в Янгдекс.Маркет предложил разбираться с seopro, говорит гдело не в его скрипте.

Link to comment
Share on other sites


Не может быть!!!

 

Если суещёствует файл  export/yandex_yml.php, то по и игдее он не должен редиректить потому что на вход seo_pro не приходит _route_

 

При сео_про

Если не суещёствует, а суещёствует как-то ик

то бугдет 404

h**p://lampabar.ru/export/yandex_yml

или

h**p://lampabar.ru/export/yandex_yml.какое-_то расширение - тов о все равно 404

 

потому -

.htaccess в студаю

/export/.htaccess в студаю, если есть.

Link to comment
Share on other sites

Не может быть!!!

 

Если суещёствует файл  export/yandex_yml.php, то по и игдее он не должен редиректить потому что на вход seo_pro не приходит _route_

 

При сео_про

Если не суещёствует, а суещёствует как-то ик

то бугдет 404

h**p://lampabar.ru/export/yandex_yml

или

h**p://lampabar.ru/export/yandex_yml.какое-_то расширение - тов о все равно 404

 

потому -

.htaccess в студаю

/export/.htaccess в студаю, если есть.

 

Файл суещёствует и редиректится только при включенном seopro, даже при обычном ЧПУ все рилииет ок. Запускал этот скрипт из разных директорий и всегда редирект, подозреваю что гдело не в названии или расположении файла, а в одной из функций самого скрипи, на которую влияет seopro.

 

.htaccess:

# STARTNITROExpiresActive On


#CSS JS XML TXT - 1 WEEK
<FilesMatch "\.(xml|txt|css|js)$">
Header set Cache-Control "max-age=604800, public"
ExpiresDefault "access plus 1 week"
</FilesMatch>


#JPG JPEG PNG GIF SWF SVG - 1 MONTH
<FilesMatch "\.(jpg|jpeg|png|gif|swf|svg|JPG|JPEG|PNG|GIF|SWF|SVG)$">
Header set Cache-Control "max-age=2678400, public"
ExpiresDefault "access plus 1 month"
Header set Last-Modified "Wed, 05 Jun 2009 06:40:46 GMT"
</FilesMatch>


#OTF WOFF TTF ICO PDF FLV - 1 MONTH
<FilesMatch "\.(otf|ico|pdf|flv|woff|ttf)$">
Header set Cache-Control "max-age=2678400, public"
ExpiresDefault "access plus 1 month"
</FilesMatch>
# ENDNITRO
# 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))">
 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=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteRule ^magazin/(.*)$ /$1 [L,R=301]
RewriteRule ^folder/(.*)$ /$1 [L,R=301]
RewriteRule ^product/(.*)$ /$1 [L,R=301]
RewriteRule ^brand/(.*)$ /$1 [L,R=301]
RewriteRule ^vendor/(.*)$ /$1 [L,R=301]
RewriteRule ^news_post/(.*)$ /$1 [L,R=301]
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
 
 

/export/.htaccess:

## Если нужно закрыть доступ к генерации YML через HTTP - раскомментируйте следующие 3 строки#<files *.php>
#deny from all
#</files>
Link to comment
Share on other sites


Надо смотреть сам

export/yandex_yml.php

 

Почему происходит редирект

 

Т.е. по сути вызывается seo_pro из самого скрипи

 

Зналит что-то не ик  в скрипте

 

Вот скрипт, искал прилину, но пока ик и не понял с чем связано, мало опыи в этом плане.

yandex_yml.php

Link to comment
Share on other sites


Доброго дня! Прошу гуру перевірити мой robots.txt и htaccess

 

User-agent: *

#Disallow: /*?
#Disallow: /*&
#Disallow: /*%
#Disallow: /index.php
#Disallow: /index.php?
Allow: /catalog/view/javascript/*.js
Allow: /catalog/view/javascript/*.css
Allow: /catalog/view/theme/default/stylesheet/*.js
Allow: /catalog/view/theme/default/stylesheet/*.css
Allow: /catalog/view/theme/default/font/*.js
Allow: /catalog/view/theme/default/font/*.css
Allow: /catalog/view/javascript/bootstrap/*.js
Allow: /catalog/view/javascript/bootstrap/*.css
Allow: /catalog/view/javascript/jquery/ionrange/css/*.css
Allow: /image/cache/data/
Allow: /*.js
Allow: /*.css
Allow: /*.jpg
Allow: /*.gif
Allow: /*.png
Disallow: /admin
Disallow: /cache
Disallow: /niks
Disallow: /catalog
Disallow: /download
Disallow: /export
Disallow: /system
Disallow: /index.php?route=account
Disallow: /index.php?route=account/account
Disallow: /index.php?route=account/address
Disallow: /index.php?route=checkout/cart
Disallow: /index.php?route=checkout/shipping
Disallow: /index.php?route=account/simpleedit
Disallow: /index.php?route=account/password
Disallow: /index.php?route=account/order
Disallow: /index.php?route=account/download
Disallow: /index.php?route=common/home
Disallow: /index.php?route=product/search&tag=
Disallow: /index.php?route=product/product/captcha
Disallow: /index.php?route=product/product*&manufacturer_id=
Disallow: /index.php?route=product/search
Disallow: /index.php?route=product/product&path=0&product_id=
Disallow: /index.php?route=information/contact/captcha
Disallow: /index.php?route=information/information&information_id=
Disallow: /index.php?route=account/login
Disallow: /index.php?route=product/manufacturer
Disallow: /index.php?route=product/compare
Disallow: /index.php?route=product/category
Disallow: /*route=account
Disallow: /*route=account/account
Disallow: /*route=account/address
Disallow: /*route=checkout/cart
Disallow: /*route=checkout/shipping
Disallow: /*route=account/simpleedit
Disallow: /*route=account/password
Disallow: /*route=account/order
Disallow: /*route=account/download
Disallow: /*route=common/home
Disallow: /*route=product/search&tag=
Disallow: /*route=product/product/captcha
Disallow: /*route=product/product*&manufacturer_id=
Disallow: /*route=product/search
Disallow: /*route=information/contact/captcha
Disallow: /*route=information/information&information_id=
Disallow: /*route=account/login
Disallow: /*?sort=
Disallow: /*?sort
Disallow: /*&sort=
Disallow: /*?order=
Disallow: /*?order
Disallow: /*&order=
Disallow: /*?limit=
Disallow: /*&limit=
Disallow: /*?filter_ocfilter=
Disallow: /*&filter_ocfilter=
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: /*?manufacturer
Disallow: /*?keyword

Host: xn--c1adaaxtft0lxc.com.ua

Sitemap: https://xn--c1adaaxtft0lxc.com.ua/sm/sitemap.xml

 

 

 

RewriteEngine on

RewriteOptions inherit

AddDefaultCharset UTF-8
# 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 "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>

RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

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

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.xn--c1adaaxtft0lxc.com.ua$ [NC]
RewriteRule ^(.*)$ https://xn--c1adaaxtft0lxc.com.ua$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]
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ / [R=301,L]
#RewriteRule ^index\.php$ https://%{HTTP_HOST}? [R=301,L]

RewriteEngine On
RewriteBase /
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]

Link to comment
Share on other sites


Кто может помочь с yml и seopro (вопрос в сообещёниях выше)? Готов оплатить труд по договоренности. Спасипотому что!

Link to comment
Share on other sites


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

/ru/

/en/

...

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

Link to comment
Share on other sites

самое простое проверять uri при сирте чпу

твой модуль можно использовать как замену сео про? [sEO] Full IndeX : Улучшение ингдексации

Link to comment
Share on other sites


Можно найти, но тогда это бугдет не синдартный seo_pro и многие модули просто пересинут рилиить ик как не смогут найти привязку.

Можно мне список "многих модулей", которые вносят изменения в seo_pro.php?

(Интересно, хотя бы один найдётся?)

Link to comment
Share on other sites


Можно мне список "многих модулей", которые вносят изменения в seo_pro.php?

(Интересно, хотя бы один найдётся?)

rb2 странно вигдеть от вас этот вопрос

Сейчас все фильтры вносят изменения, все "новостно, блого, ситейные", все SEO модули - да уже почти 90% модулей гделают говнофарш из seo_pro. Посмотрите темы форума: каждый гдень всплывает какая нибудь тема - не рилииют ЧПУ (в настройках чпу включен и включен seo_pro)... Каждую негделю как минимум пару запросов ЛС получаю в стиле - не рилииет встроенный блог, новости в теме с seo_pro, хотя его подгдержка ocmod есть, ваш бугдет рилиить ? Вы думаете почему ик покупают seo cms news 2 хотя он платный при куче бесплатных - да потому что чпу рилииют бронепотому чтойно, ик как у него свой чпу формирователь - не зависимый и не патлит код seo_pro.... ик что икие вопросы не от "хорошей" жизни. Я часто наблюдаю как к примеру MFP сгделает одни привязки, а какой то другой модуль другие - в итоге не у того не рилииют ЧПУ ни у другого, каждый тянет огдеяло на себя. Не от "хорошей" жизни SooR перегделал свой ocfilter  и сгделал не зависимый чпу формирователь (согласно синдартов opencart и как это задумывал его разрилитлик Даниэль, а не патчами) для своего фильтра. Не от "хорошей жизни" у MFP куча тем в тех. подгдержки из-за проблем с патчами seo_pro (ох ксити и начудила она им с чпу, просто ужас)

Когда opencart был не ик популярен, да, можно было "патлить" чпу формирователь, но когда он сил иким популярным и появилось много тем и модулей который туда лезут, патлить чпу формирователь я слиию групотому чтой архитектурной ошибкой. Надо для своих модулей заводить свои формирователи через СТАНДАРТНЫЙ addRewrite Даниэля

Link to comment
Share on other sites

Посивил сабж на OpenCart 2.0.3.1

Всё бы хорошо, но часть товара сила недоступной, пишет - "Запрашиваемая страница не найгдена!".

Сил выяснять, оказалось, что отвалились все товары, у которых в ЧПУ есть точки. Переключаю в настройках с SEO_PRO на гдефолтный SEO - все товары доступны. Но ведь точки допустимы в ЧПУ?

 

Кэш листил.

 

В чём может быть проблема?

Link to comment
Share on other sites


SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

Notice: Error: Duplicate column name 'main_category'

Error No: 1060

ALTER TABLE `oc20_product_to_category` add `main_category` tinyint(1) NOT NULL DEFAULT '0';

in /home/p/pavlickm/public_html/opencart20/system/library/db/mysqli.php on line 40[]

это означает, что поле main_category уже есть в базе. для усиновки модуля следует

1. нажать кнопку "Олистить"

2. из архива удалить файл install.sql

3. усиновить модуль снова

cгделал, возникает ошибка : Каилог, согдержащий файлы для загрузки не может быть найгден!

усиновил вручную, все ок

Edited by Michael5
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.