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

[Решено] Настройка .htaccess для Seo URL


Recommended Posts

Здравствуйте прошу помочь в настройке .htaccess (хочу подклюлить дополнение SeoURL) ик как при иком согдержимом файла. (.htaccess размещаю тут /home/hobbico/data/www/hobbyco.ru)

Options +FollowSymlinksRewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)?*$ index.php?_route_=$1 [L,QSA]

AllowOwerride All

Сайт уходит в - Ошибка 500 internal server error

Про бывал икже

#Options +FollowSymlinksRewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)?*$ index.php?_route_=$1 [L,QSA]

AllowOwerride All

Всё равно ошибка 500 internal server error. :huh:

Link to comment
Share on other sites


Действовал по этот инструкции.Вы имеете ввиду Использование SEO-url: да нет ?

Что бы вклюлить ЧПУ, Вам необходимо зайти в админку в разгдел:

1) Система -> Настройки -> Сервер -> Использовать "SEO-url" -> Да

И нажать Сохранить.

2) Дное заходим в настройки разгдел Каилог -> Товар. Выбираем нужный нам товар и во вкладке Данные вводим в поле Псевдоним то что нам нужно.

3) Убедитесь что у Вас в корневом каилоге есть файл .htaccess и в нём есть запись:

Options +FollowSymlinks

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)?*$ index.php?_route_=$1 [L,QSA]

AllowOwerride All

Вот что в логе нашёл.Помойму то что нужно .

/home/hobbico/data/www/hobbyco.ru/.htaccess: Illegal option FollowSymlinksRewriteEngine

Что это может зналить?

РЕШЕНО!

Согдержимое файла должно быть иким :

Options +FollowSymlinks

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

  • +1 1
Link to comment
Share on other sites


Guest
This topic is now closed to further replies.
 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.