Jump to content
Sign in to follow this  
Farid78

[Решено] Ошибки в работе ЧПУ

Recommended Posts

Добрый день!

Чпу настроил верно. Но выдает ошибку в логах

 

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.teplolux-dnepr.in.ua/
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.teplolux-dnepr.in.ua/

 

Помогите разобраться!

 

Вот мой файл 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)">
 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 /home/teplolux-dnepr.in.ua/www/
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]
 
 
### 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
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.teplolux-dnepr.in.ua/$ [NC]
RewriteRule ^(.*)$ http://teplolux-dnepr.in.ua//$1 [R=301,L]

 

Share this post


Link to post
Share on other sites

ЧПУ настроили через SEO Pro?

Share this post


Link to post
Share on other sites

последние три строки повеселили

Share this post


Link to post
Share on other sites

файл .htaccess замените файлом из дистрибутива

(не забудьте расширение .txt убрать)

Share this post


Link to post
Share on other sites

ЧПУ настроили через SEO Pro?

Да через SEO Pro

Share this post


Link to post
Share on other sites

файл .htaccess замените файлом из дистрибутива

(не забудьте расширение .txt убрать)

А где дистрибутив мне искать?

Share this post


Link to post
Share on other sites

последние три строки повеселили

Это мне ради зеркала.

Share this post


Link to post
Share on other sites

А где дистрибутив мне искать?

Новый файл закачал так сайт вовсе перестал открываться. 

Share this post


Link to post
Share on other sites

всё у вас открывается. в чем проблема?

Share this post


Link to post
Share on other sites

1) .htaccess должен быть без расширения

2) замените RewriteBase /home/teplolux-dnepr.in.ua/www/  на RewriteBase /

3) код редиректа добавьте после имеющегося RewriteEngine On а не в конце файла

Share this post


Link to post
Share on other sites

1) .htaccess должен быть без расширения

2) замените RewriteBase /home/teplolux-dnepr.in.ua/www/  на RewriteBase /

3) код редиректа добавьте после имеющегося RewriteEngine On а не в конце файла

Сделал. Но ничего не меняется:

 

# 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
RewriteCond %{HTTP_HOST} ^www.teplolux-dnepr.in.ua/$ [NC]
RewriteRule ^(.*)$ http://teplolux-dnepr.in.ua//$1 [R=301,L]
# 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]
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

Share this post


Link to post
Share on other sites

по факту - редирект с www на без www работает

 

попробуйте изменить Options +FollowSymlinks на Options +SymLinksIfOwnerMatch

если не поможет - мучать хостера

Share this post


Link to post
Share on other sites

уже и это пробовал.

 

Хостинг уже мучал. 

Последний их ответ:

 

Исходя из того что это приводит к ошибке - настроено неверно. 
Об этом же говорят ошибки в "Мои сайты" -- "Логи сервера" -- "Error" вида: 
14:29:26 93.127.53.83 Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.teplolux-dnepr.in.ua/
14:28:00 93.127.53.83 Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.teplolux-dnepr.in.ua/

 

Исходя из личного опыта могу сказать что чаще всего проблемы подобного рода возникают из-за внутренних ошибок именно в работе скриптах сайтов или несоответствия того что прописано в .htaccess их настройкам. Так как если ошибка только в htaccess - это обычно приводит либо к циклической переадресации браузера посетителя, либо к ошибкам 404/403. 
Но в любом случае помочь в решении вопроса может либо разработчик сайта, либо профильный специалист.

Share this post


Link to post
Share on other sites

По ссылке http://teplolux-dnepr.in.ua/index.php?route=feed/google_sitemap выдает ошибку. /Подскажите как ее исправить:

 

Notice: Error: Could not load language feed/google_sitemap! in /home/teplo123/teplolux-dnepr.in.ua/www/vqmod/vqcache/vq2-system_library_language.php on line 39Notice: Use of undefined constant HTTP_CATALOG - assumed 'HTTP_CATALOG' in /home/teplo123/teplolux-dnepr.in.ua/www/catalog/controller/feed/google_sitemap.php on line 69Notice: Error: Could not load template /home/teplo123/teplolux-dnepr.in.ua/www/catalog/view/theme/feed/google_sitemap.tpl! in /home/teplo123/teplolux-dnepr.in.ua/www/vqmod/vqcache/vq2-system_engine_controller.php on line 70

Share this post


Link to post
Share on other sites

Вбиваете в поиск по форуму "Could not load language" и узнаёте банальную причину. Тоже самое касается и "Could not load template".

Вам копать следует вот сюда ->

Use of undefined constant HTTP_CATALOG - assumed 'HTTP_CATALOG' in /home/teplo123/teplolux-dnepr.in.ua/www/catalog/controller/feed/google_sitemap.php on line 69

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.