Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

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


Recommended Posts

  • 4 weeks later...

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

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

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

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

 

 

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

Надіслати
Поділитися на інших сайтах


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

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

plitka-anturazh.ru

 

c уважением.

Надіслати
Поділитися на інших сайтах


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

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

Имеем виндовый сервер 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
Надіслати
Поділитися на інших сайтах


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

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

plitka-anturazh.ru

 

c уважением.

 

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

Надіслати
Поділитися на інших сайтах


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

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

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

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

Надіслати
Поділитися на інших сайтах


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

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

заходим на сайт и ссылки на категории имеют вид 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

Змінено користувачем Zeppelin
Надіслати
Поділитися на інших сайтах


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

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

 

А вот это говорит, что Апач не понимает, что от него хотят :) возможно разница в работе "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 версию на живом сервере

Надіслати
Поділитися на інших сайтах


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

Надіслати
Поділитися на інших сайтах


  • 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

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

Надіслати
Поділитися на інших сайтах


Не получается заставить работать ЧПУ. Версия 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 НЕВОЗМОЖНО!

Змінено користувачем Zeppelin
Надіслати
Поділитися на інших сайтах


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

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

Купил VPS на ubuntu-13.10

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

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

Надіслати
Поділитися на інших сайтах


отлично!

если в Админке отключить 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();
?>
Змінено користувачем Zeppelin
Надіслати
Поділитися на інших сайтах


 

отлично!

если в Админке отключить 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();
?>

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

Надіслати
Поділитися на інших сайтах


найди файл конфигурации сервера 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

Змінено користувачем Zeppelin
Надіслати
Поділитися на інших сайтах


найди файл конфигурации сервера 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

Надіслати
Поділитися на інших сайтах


Створіть аккаунт або увійдіть для коментування

Ви повинні бути користувачем, щоб залишити коментар

Створити обліковий запис

Зареєструйтеся для отримання облікового запису. Це просто!

Зареєструвати аккаунт

Вхід

Уже зареєстровані? Увійдіть тут.

Вхід зараз
  • Зараз на сторінці   0 користувачів

    • Ні користувачів, які переглядиють цю сторінку

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.