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

Recommended Posts

Все изменения происходящие с шопом происходят только после изменения в .htaccess, поэтому сомневаюсь, что еще где-то осталась папка с неверным путем к файлам шопа.

На хостинге. Мод_рерайт обычно включен, но я спрошу у сапорта.

Советую просто переустановить, а потом перезалить базу, если она важна :) Про mod_rewrite обычно пишут в тарифах хостера.

Подскажите, пожалуйста, настроила ЧПУ в админке и внесла изменения в .htaccess. Чпу Ссылки заработали, но теперь при заходе на новые страницы ошибка 404, страницы без Чпу работают нормально. В чем может быть причина?

Магазин в папке или в корне?

Сео ссылки уникальны на магазин?

Приведите пример одной из таких неработающих ссылок?

RewriteBase /
пробовали закомментировать?
Надіслати
Поділитися на інших сайтах


Переставил все, вроде пока работает.

Вопрос: SEO URL для подкатегорий надо указывать как phones/apple или как ?

Если указать прочто apple то при переходе опять пишет "Страница не найдена"

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


Переставил все, вроде пока работает.

Вопрос: SEO URL для подкатегорий надо указывать как phones/apple или как ?

Если указать прочто apple то при переходе опять пишет "Страница не найдена"

Указывается имя самой категории в не зависимости от вложенности. Скорее всего apple у вас не уникален, попробуйте назвать её unic-apple.
Надіслати
Поділитися на інших сайтах


Советую просто переустановить, а потом перезалить базу, если она важна :) Про mod_rewrite обычно пишут в тарифах хостера.

Магазин в папке или в корне?

Сео ссылки уникальны на магазин?

Приведите пример одной из таких неработающих ссылок?

RewriteBase /
пробовали закомментировать?

1/ в папке

2. Ссылки уникальны

3. пример ссылки http://antenasat.com.ua/sputnik и http://antenasat.com.ua/videodomofonu

4. Пробывала закомментить, но не помогло(((

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


1/ в папке

2. Ссылки уникальны

3. пример ссылки http://antenasat.com.ua/sputnik и http://antenasat.com.ua/videodomofonu

4. Пробывала закомментить, но не помогло(((

Как у вас htaccess выглядит?

Должны быть такие строки, в таком порядке:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Надіслати
Поділитися на інших сайтах


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

<FilesMatch ".(tpl|ini|log|txt)">

Order deny,allow

Deny from all

</FilesMatch>

<Files robots.txt>

Allow from all

</Files>

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

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

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

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


Как у вас htaccess выглядит?

Должны быть такие строки, в таком порядке:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

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

<FilesMatch ".(tpl|ini|log|txt)">

Order deny,allow

Deny from all

</FilesMatch>

<Files robots.txt>

Allow from all

</Files>

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

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

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

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


htaccess

Может у вас просто не работает mod_rewrite?

Очистите на время ваш htaccess и запишите туда

RewriteEngine On
RewriteRule ^.*$ htaworks.php
предварительно создав файл htaworks.php с текстом типа

<?php print 'Excellent!'; ?>
в корне сайта, рядом с index.php. Теперь при заходе на сайт вы должны будете попадать на этот файл.

Если возникает какая-то ошибка, то вам надо на поклон к хостеру, почему не работает mod_rewrite.

А ещё может помочь провести все пляски с бубном, описанные выше, ещё раз, только делая между ними перерывы в виде очистки кэша, смены браузера ... т.е. возможно вы всё сделали правильно, но при попытке просмотреть исправленный вариант получали закешированную у вас или на каком-то прокси сервере страницу, не видя изменений.

И пересохраните картинку из шапки в jpg, 350 Кб — это много для элемента оформления, пожалейте людей с медленным интернетом.

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


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

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

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

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

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

Вхід

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

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

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

Important Information

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