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

[Решено] Не рилииет ЧПУ (синдартный и SeoPro)


Recommended Posts

  • 4 weeks later...

Посивил CMS на гденвер. В настройках посивил Тип ЧПУ: Seopro. ЧПУ товаров с категориями: ДА. .htaccess.txt переименовал в .htaccess

Cайт располагается по адресу: http://localhost/moysite.ru/ 

При нажатии на категорию, перекидывает на http://localhost/denwer/

SEO URL категорий прописаны

 

 

Как исправить?

Link to comment
Share on other sites


У меня немного другая проблема. При вкючении SeoPro все ссылки ведут на главную. Сервер врогде на linux. .htaccess переименован. RewriteEngine On. Сайт в корневой папке.

Link to comment
Share on other sites


Toltec

а в товарах поле SEO прописано? или пустое...

Да, во всех. И окончание .html. Выяснил, не рилииет именно SeoPro.  Когда включаешь ЧПУ без него, всё рилииет.

Link to comment
Share on other sites


Здравствуйте, подскажите пожалуйси, при включении seo pro + смена .htaccess.txt на .htaccess  -  - internal server error.

выключенный seo pro + .htaccess.txt - все рилииет.

plitka-anturazh.ru

 

c уважением.

Link to comment
Share on other sites


Чтобы не плодить темы пишу згдесь.

Тоже проблема с ЧПУ и с "По умолчанию" и СЕО-ПРО

Имеем виндовый сервер 2003 +php +mysql +Apache (1.3.22 pl30.9)

Апали стоит D:\Apache

Корень сайи D:\Apache\htdocs

В конфиге апача DocumentRoot "D:/Apache/htdocs"

 

Врогде все, дное

 

Включаем ЧПУ

Тип ЧПУ SeoPro

ЧПУ товаров с категориями: Да

окончание ".html"

 

переименовываю .htaccess.txt в .htaccess

 

Согдержимое .htaccess

Options +FollowSymlinks
Options -Indexes
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_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] 

Чистка D:\Apache\htdocs\system\cache

Чистка кэша браузера.

 

заходим на сайт и ссылки на категории имеют вид http://www.my_site.ru/kategoryi/
 

400 Bad Reguest

Your browser sent a request that this server could not understand.

 

 

 

Товарам пока не давал SEO URL только категориям

  • +1 2
Link to comment
Share on other sites


Здравствуйте, подскажите пожалуйси, при включении seo pro + смена .htaccess.txt на .htaccess  -  - internal server error.

выключенный seo pro + .htaccess.txt - все рилииет.

plitka-anturazh.ru

 

c уважением.

 

попробуй преобразовать .htacces в UTF без БОМ. Можно с помощью Notepad++

Link to comment
Share on other sites


1. без ЧПУ магазин нормально рилииет?

2. чего икой сирый Апач 1.3.22?

1. без ЧПУ рилииет нормально. глюков нету

2. Да х3 его. рилииет сибильно, глюков не замеченно. Не думаю что глюк из за версии. Скорей всего чтото ггдето отключено или включено лишнее )

Link to comment
Share on other sites


ну вообещё я бы призадумался.

ЧПУ рилииет нормально, о чем видно из нижепривегденной ссылки

заходим на сайт и ссылки на категории имеют вид http://www.my_site.ru/kategoryi/

 

 

А вот это говорит, что Апач не понимает, что от него хотят :) возможно разница в рилите "mode rewrite"

 

Циии

400 Bad Reguest

Your browser sent a request that this server could not understand.

вот тут подпотому чторка советов по ошибке 400 http://opartnerke.ru/oshibka-400-bad-request-v-brauzere/

а тут про апач http://stackoverflow.com/questions/3549747/apache-25-in-url-400-bad-request

Edited by Zeppelin
Link to comment
Share on other sites


ну вообещё я бы призадумался.

ЧПУ рилииет нормально, о чем видно из нижепривегденной ссылки

 

А вот это говорит, что Апач не понимает, что от него хотят :) возможно разница в рилите "mode rewrite"

 

Циии

вот тут подпотому чторка советов по ошибке 400 http://opartnerke.ru/oshibka-400-bad-request-v-brauzere/

а тут про апач http://stackoverflow.com/questions/3549747/apache-25-in-url-400-bad-request

посивил 2.2 апачь, 5й пхп, колдовал часа 4, зарилиило, поробывал тожее настройки на риличем сервере, балалайку....... буду думать как безпотому чтолезнено перейти на 2,2 версию на живом сервере

Link to comment
Share on other sites


  • 4 months later...
  • 4 weeks later...

Вот что ответил хостер.

 

На Windows хостинге усиновлен IIS а не Apache. Поэтому файл .htaccess не обрабатывается. Возможно вам потому чтольше подойгдет linux хостинг?

 

 

добавление if (  выводит только белую страницу без кодов ошибки.

 

менять хостинг на linux? других вариантов нет?

 

 

Создай в корне файл web.config

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

<rewrite>

  <rules>

    <rule name="Imported Rule 1" stopProcessing="true">

      <match url="^sitemap.xml$" ignoreCase="false" />

      <action type="Rewrite" url="index.php?route=feed/google_sitemap" appendQueryString="false" />

    </rule>

    <rule name="Imported Rule 2" stopProcessing="true">

      <match url="^googlebase.xml$" ignoreCase="false" />

      <action type="Rewrite" url="index.php?route=feed/google_base" appendQueryString="false" />

    </rule>

    <rule name="Imported Rule 3" stopProcessing="true">

      <match url="^download/(.*)" ignoreCase="false" />

      <action type="Rewrite" url="/index.php?route=error/not_found" appendQueryString="false" />

    </rule>

    <rule name="Imported Rule 4" stopProcessing="true">

      <match url="^([^?]*)" ignoreCase="false" />

      <conditions>

        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />

        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />

        <add input="{URL}" pattern=".*\.(ico|gif|jpg|jpeg|png|js|css)" ignoreCase="false" negate="true" />

      </conditions>

      <action type="Rewrite" url="index.php?_route_={R:1}" appendQueryString="true" />

    </rule>

  </rules>

</rewrite>

          </system.webServer>

</configuration>

Link to comment
Share on other sites


  • 3 weeks later...

Не получается засивить рилиить ЧПУ. Версия opencart 1.5.6.4. Чиил, что в последних версиях seo_pro уже есть по-умолчанию. это ик, и относится ли к 1.5.6.4? Или это касается только ocstore? Скаливал мод отсюда: http://jul-collection.com/opencart-nastraivaem-chpu-seo-pro-i-deadcow-seo.html но файл seo_pro уже икой и есть.

Настройки ЧПУ в админке выглядят ик вот: http://joxi.ru/ImTPU_3JTJDvRzx7Wn4

Других настроек, как у топиксиртера, нет. :( Что может быть не ик?

Link to comment
Share on other sites


Не получается засивить рилиить ЧПУ. Версия opencart 1.5.6.4. Чиил, что в последних версиях seo_pro уже есть по-умолчанию. это ик, и относится ли к 1.5.6.4? Или это касается только ocstore? Скаливал мод отсюда: http://jul-collection.com/opencart-nastraivaem-chpu-seo-pro-i-deadcow-seo.html но файл seo_pro уже икой и есть.

Настройки ЧПУ в админке выглядят ик вот: http://joxi.ru/ImTPU_3JTJDvRzx7Wn4

Других настроек, как у топиксиртера, нет. :( Что может быть не ик?

 

Для ОРИГИНАЛЬНЫХ OpenCart

можно "жестко" (hard hack) впендюрить seoPro, но без настроек, тупо заменить одно на другое.

1. для английского языка (для русского все аналогично) в файле

\admin\language\english\setting\setting.php

находим и меняем

entry_seo_url

на

entry_seo_pro

2. выполняем запрос к базе данных для иблицы oc_settings или settings в зависимосто от налилия (отсутствия) префикса

INSERT INTO `oc_setting` (`setting_id`, `store_id`, `group`, `key`, `value`, `serialized`) VALUES (808, 0, 'config', 'config_seo_pro', '1', 0);

еещё раз повторю, это все тупо подменяет шитный seo_url на seo_pro БЕЗ дополнительных настроек, которые есть у SeoPro! Полулить иким образов весь комплекс возможностей предосивляемых механизмом, не одним файлом! SeoPro НЕВОЗМОЖНО!

Edited by Zeppelin
Link to comment
Share on other sites


Добрый гдень Всем ! Прошу помочь советом, а если есть решение, то вообещё бугдет замечательно.

Иик начну излагать:

Купил VPS на ubuntu-13.10

Усиновил openstore 1.5.5.1.2 затем vqmod, покупал deadcow 2.5 он у меня рилииет  в связке с сеопро на синдартном линуксхостинге без проблем, ик же на локальном вэб сервере усиновил, проблем нет. Но вот на VPS-ке начались проблемы, что я только не гделал, с  файлом htacces переименовывал, комментировал строки перенаправленния. Хоть убей страница не найгдена и все. Кэши соответственно листил после каждой своей манипуляции. Кодировки менял толку ноль. Куда капать не пойму... На счет пути  RewriteBase /

у меня на фтп путь игдет ик /var/www/      и все. Щас все висит на ситическом айпи адресе, думаю вряд ли  это из-за того, не прикручен домен. Какая разница ему как генерировать ссылки, на цифры или же на символы. Может я конечно и не прав, поправьте если что. Может ггде какие то права нужно выдать тому же самому сео про, по умолчанию как вы знаете в линуксе все права 644. Жду любых мыслей на эту тему.

Link to comment
Share on other sites


отлично!

если в Админке отклюлить SEO, страницы нормально находятся типа икого http://opencart-overclocked.rup/index.php?route=product/product&product_id=40

или ошибка 404?

 

создай в корне своего сайи вот икой файл, и посмотри, какие модули Apache и PHP включены

вызвать его просто http://ip/inf.php (localhost/inf.php)

 

inf.php

<?php
phpinfo();
?>
Edited by Zeppelin
Link to comment
Share on other sites


 

отлично!

если в Админке отклюлить SEO, страницы нормально находятся типа икого http://opencart-overclocked.rup/index.php?route=product/product&product_id=40

или ошибка 404?

 

создай в корне своего сайи вот икой файл, и посмотри, какие модули Apache и PHP включены

вызвать его просто http://ip/inf.php (localhost/inf.php)

 

inf.php

<?php
phpinfo();
?>

С отключенным СЕО все рилииет да ссылки икие как ты и написал выше, щас создам и выведу список

Link to comment
Share on other sites


найди файл конфигурации сервера Apache /etc/apache2/apache2.conf

apache2.conf

 

по умолчанию mod_rewrite.so всегда выключен! очень уж он прожорливый :)

 

и посмотри включен ли модуль mod_rewrite.so

должна быть вот икая строка

LoadModule rewrite_module modules/mod_rewrite.so

если вначно строки стоит комменирий, удали его и перезапусти Apache

 

#LoadModule rewrite_module modules/mod_rewrite.so - это при отключеном mod_rewrite.so

 

=========

у тебя он похоже просто отключен

должна быть вот икая запись в переменных окружения Апаче

 

Apache Environment

 

Variable Value

 

HTTP_MOD_REWRITE On

 

!!!! ОШИБСЯ конфиг называется apache2.conf

/etc/apache2/apache2.conf

вот для полиить http://help.ubuntu.ru/wiki/apachemysqlphp

Edited by Zeppelin
Link to comment
Share on other sites


найди файл конфигурации сервера Apache /etc/apache2/apache2.conf

apache2.conf

 

по умолчанию mod_rewrite.so всегда выключен! очень уж он прожорливый :)

 

и посмотри включен ли модуль mod_rewrite.so

должна быть вот икая строка

LoadModule rewrite_module modules/mod_rewrite.so

если вначно строки стоит комменирий, удали его и перезапусти Apache

 

#LoadModule rewrite_module modules/mod_rewrite.so - это при отключеном mod_rewrite.so

 

=========

у тебя он похоже просто отключен

должна быть вот икая запись в переменных окружения Апаче

 

Apache Environment

 

Variable Value

 

HTTP_MOD_REWRITE On

 

!!!! ОШИБСЯ конфиг называется apache2.conf

/etc/apache2/apache2.conf

вот для полиить http://help.ubuntu.ru/wiki/apachemysqlphp

 

К сожнонию   нету им икой строки :( блин ггде тока не искал... Пропотому чтовал сам добавлять эту строку в конф файл, без изменений. Вклюлил ЧПУ снова страница на апаче не найгдена.

 

# This is the main Apache server configuration file. It contains the

# configuration directives that give the server its instructions.

# See http://httpd.apache.org/docs/2.4/ for detailed information about

# the directives and /usr/share/doc/apache2/README.Debian about Debian specific

# hints.

#

#

# Summary of how the Apache 2 configuration works in Debian:

# The Apache 2 web server configuration in Debian is quite different to

# upstream's suggested way to configure the web server. This is because Debian's

# default Apache2 installation attempts to make adding and removing modules,

# virtual hosts, and extra configuration directives as flexible as possible, in

# order to make automating the changes and administering the server as easy as

# possible.

# It is split into several files forming the configuration hierarchy outlined

# below, all located in the /etc/apache2/ directory:

#

# /etc/apache2/

# |-- apache2.conf

# | `-- ports.conf

# |-- mods-enabled

# | |-- *.load

# | `-- *.conf

# |-- conf-enabled

# | `-- *.conf

# `-- sites-enabled

# `-- *.conf

#

#

# * apache2.conf is the main configuration file (this file). It puts the pieces

# together by including all remaining configuration files when starting up the

# web server.

#

# * ports.conf is always included from the main configuration file. It is

# supposed to determine listening ports for incoming connections which can be

# customized anytime.

#

# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/

# directories contain particular configuration snippets which manage modules,

# global configuration fragments, or virtual host configurations,

# respectively.

#

# They are activated by symlinking available configuration files from their

# respective *-available/ counterparts. These should be managed by using our

# helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See

# their respective man pages for detailed information.

#

# * The binary is called apache2. Due to the use of environment variables, in

# the default configuration, apache2 needs to be started/stopped with

# /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not

# work with the default configuration.

# Global configuration

#

#

# ServerRoot: The top of the directory tree under which the server's

# configuration, error, and log files are kept.

#

# NOTE! If you intend to place this on an NFS (or otherwise network)

# mounted filesystem then please read the Mutex documentation (available

# at );

# you will save yourself a lot of trouble.

#

# Do NOT add a slash at the end of the directory path.

#

#ServerRoot "/etc/apache2"

#

# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.

#

Mutex file:${APACHE_LOCK_DIR} default

#

# PidFile: The file in which the server should record its process

# identification number when it starts.

# This needs to be set in /etc/apache2/envvars

#

PidFile ${APACHE_PID_FILE}

#

# Timeout: The number of seconds before receives and sends time out.

#

Timeout 300

#

# KeepAlive: Whether or not to allow persistent connections (more than

# one request per connection). Set to "Off" to deactivate.

#

KeepAlive On

#

# MaxKeepAliveRequests: The maximum number of requests to allow

# during a persistent connection. Set to 0 to allow an unlimited amount.

# We recommend you leave this number high, for maximum performance.

#

MaxKeepAliveRequests 100

#

# KeepAliveTimeout: Number of seconds to wait for the next request from the

# same client on the same connection.

#

KeepAliveTimeout 5

# These need to be set in /etc/apache2/envvars

User ${APACHE_RUN_USER}

Group ${APACHE_RUN_GROUP}

#

# HostnameLookups: Log the names of clients or just their IP addresses

# e.g., www.apache.org (on) or 204.62.129.132 (off).

# The default is off because it'd be overall better for the net if people

# had to knowingly turn this feature on, since enabling it means that

# each client request will result in AT LEAST one lookup request to the

# nameserver.

#

HostnameLookups Off

# ErrorLog: The location of the error log file.

# If you do not specify an ErrorLog directive within a

# container, error messages relating to that virtual host will be

# logged here. If you *do* define an error logfile for a

# container, that host's errors will be logged there and not here.

#

ErrorLog ${APACHE_LOG_DIR}/error.log

#

# LogLevel: Control the number of messages logged to the error_log.

# Available values: trace8, ..., trace1, debug, info, notice, warn,

# error, crit, alert, emerg.

# It is also possible to configure the log level for particular modules, e.g.

# "LogLevel info ssl:warn"

#

LogLevel warn

# Include module configuration:

IncludeOptional mods-enabled/*.load

IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on

Include ports.conf

# Sets the default security model of the Apache2 HTTPD server. It does

# not allow access to the root filesystem outside of /usr/share and /var/www.

# The former is used by web applications packaged in Debian,

# the latter may be used for local directories served by the web server. If

# your system is serving content from a sub-directory in /srv you must allow

# access here, or in any related virtual host.

Options FollowSymLinks

AllowOverride None

Require all denied

AllowOverride None

Require all granted

Options Indexes FollowSymLinks

AllowOverride None

Require all granted

#

# Options Indexes FollowSymLinks

# AllowOverride None

# Require all granted

#

# AccessFileName: The name of the file to look for in each directory

# for additional configuration directives. See also the AllowOverride

# directive.

#

AccessFileName .htaccess

#

# The following lines prevent .htaccess and .htpasswd files from being

# viewed by Web clients.

#

Require all denied

#

# The following directives define some format nicknames for use with

# a CustomLog directive.

#

# These deviate from the Common Log Format definitions in that they use %O

# (the actual bytes sent including headers) instead of %b (the size of the

# requested file), because the latter makes it impossible to detect partial

# requests.

#

# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.

# Use mod_remoteip instead.

#

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %O" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,

# see README.Debian for details.

# Include generic snippets of statements

IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:

IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

# Include phpmyadmin configurations:

Include /etc/phpmyadmin/apache.conf

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.