LINUX.ORG.RU

Закомментировать htaccess

 


0

1

You don't have permission to access /ndex.php on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

А вот и сам htaccess- его надо закомментировать.

#CharsetDisable On

#AddDefaultCharset iso-8859-1

#Options -Indexes ExecCGI FollowSymLinks MultiViews Includes

DirectoryIndex index.phtml index.php index.shtml index.html index.htm /gohome.php

AddType application/x-httpd-php .phtml .php


ErrorDocument 403 /error403.php
ErrorDocument 404 /error404.php

php_flag ignore_user_abort On
php_value variables_order EGPCS
php_flag magic_quotes_gpc Off
php_flag register_argc_argv Off
php_flag register_globals On
php_value error_reporting 2039
#php_value error_reporting "E_ALL&~E_NOTICE"
php_flag session.use_trans_sid Off
php_value post_max_size 16M
php_value upload_max_filesize 10M
php_value max_execution_time 600
php_value max_input_time 1200
php_value memory_limit 32M
php_flag allow_url_fopen On
php_value output_buffering 0
php_flag track_errors On
php_value session.gc_maxlifetime 10800


RewriteEngine on

# -----------------------------------------\\
RewriteCond	%{QUERY_STRING}	(^|&)(R|%52)(O|%4[Ff]){2}(T|%54)
RewriteRule	^	-	[F]
# -----------------------------------------//

# ------- Google SiteMap ------------------\\
RewriteRule	^sitemap\.xml$	/sitemap.php	[NC,L]
# -----------------------------------------//

# ------- Common Rules --------------------\\
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteCond	%{QUERY_STRING}	!WAS_REWRITED
RewriteRule	\.html?$	%{REQUEST_URI}	[NC,C]
RewriteRule	^(.*)$	$1?WAS_REWRITED=1	[NC,C,QSA]
RewriteRule	^([^.]*/([0-9]+|[^/]*[a-z][^/_]*))((_[0-9]*)*)\.html?	$1.php?args=$3	[NC,L,QSA]
# -----------------------------------------//

# ----------- Pages -----------------------\\
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	^page[/_]([a-z0-9\-]+)\.(php|p?html?)?$	/page.php?url_name=$1	[NC,L,QSA]
# -----------------------------------------//

# ------- Manufacturers -------------------\\
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	^manufacturer(s/|_)([a-z0-9\-]+)(_page([0-9]+))?\.(php|p?html?)$	/manufacturer.php?url_name=$2&page=$4&a=3	[NC,L,QSA]
# -----------------------------------------//

# --------- Products ----------------------\\
# usual url-format
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	^product(s/|_)([a-z0-9\-]+)\.(php|p?html?)$	/product.php?url_name=$2	[NC,L,QSA]
# -----------------------------------------//

# --------- Categories --------------------\\
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	^(categor(ies/|y_))?([a-z0-9\-]+)(_page([0-9]+))?((/(index\.(php|p?html?))?)|(\.(php|p?html?)))?$	/category.php?url_name=$3&page=$5	[NC,L,QSA]
# -----------------------------------------//

# --------- Products ----------------------\\
# special url-format with Category
RewriteCond	%{REQUEST_FILENAME}	!-d
RewriteCond	%{REQUEST_FILENAME}	!-f
RewriteRule	^(categor(ies/|y_))?([a-z0-9\-]+)/([a-z0-9\-]+)\.(php|p?html?)$	/product.php?url_name=$4&cat_url_name=$3	[NC,L,QSA]
# -----------------------------------------//

Перемещено beastie из general



Последнее исправление: beastie (всего исправлений: 2)

ты уверен что это .htaccess (я не вижу запрета в нем), ты првава проверял? может там пользователь, права или група не подходят.

А закоментировать просто - переименуй его. Только не забуть убрать доступ на чтение)

webmak ★★
()
Последнее исправление: webmak (всего исправлений: 3)
Ответ на: комментарий от webmak

htaccess или сервер.

Readme:Примечание: если по адресу своего шопа/админки вы видете сообщение об серверной ошибке, вроде: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. То попробуйте закомментировать установки php_* в .htaccess

Вот что пишется в логах:

Sun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxxx/htdocs/favicon.icoSun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/b5_16351729/htdocs/favicon.icoSun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/init/js/_init.js.htmlSun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxxxx/htdocs/img/logo.jpgSun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/b5_16351729/htdocs/img/logo_pas.gifSun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/menu_pas.gifSun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/b5_16351729/htdocs/img/left_vmenu.gifSun, 23 Aug 2015 00:45:32 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/map.htmlSun, 23 Aug 2015 00:45:43 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxxx/htdocs/init/js/_init.js.htmlSun, 23 Aug 2015 00:45:54 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/init/js/_init.js.htmlSun, 23 Aug 2015 00:45:54 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxx/htdocs/img/logo.jpgSun, 23 Aug 2015 00:45:54 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/logo_pas.gifSun, 23 Aug 2015 00:45:54 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxxxx/htdocs/img/menu_pas.gifSun, 23 Aug 2015 00:45:54 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxxxxx/htdocs/img/left_vmenu.gifSun, 23 Aug 2015 00:45:54 -0500 Apache2::Filter::print: (32) Broken pipe at /usr/local/lib64/perl5/Apache/abuse.pm line 217Sun, 23 Aug 2015 00:45:54 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/news.htmlSun, 23 Aug 2015 00:46:07 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/logo.jpgSun, 23 Aug 2015 00:46:07 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/init/js/_init.js.htmlSun, 23 Aug 2015 00:46:07 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/logo_pas.gifSun, 23 Aug 2015 00:46:07 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/menu_pas.gifSun, 23 Aug 2015 00:46:07 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/left_vmenu.gifSun, 23 Aug 2015 00:46:20 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/logo.jpgSun, 23 Aug 2015 00:46:20 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/init/js/_init.js.htmlSun, 23 Aug 2015 00:46:20 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/logo_pas.gifSun, 23 Aug 2015 00:46:20 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/menu_pas.gifSun, 23 Aug 2015 00:46:20 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/img/left_vmenu.gifSun, 23 Aug 2015 00:46:20 -0500 AH00128: File does not exist: /home/vol2_7/byethost5.com/xxxxx/htdocs/map.htmlSun, 23 Aug 2015 01:45:32 -0500 AH00124: 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.Sun, 23 Aug 2015 02:45:58 -0500 AH00124: 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.Sun, 23 Aug 2015 03:46:25 -0500 AH00124: 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.Sun, 23 Aug 2015 04:46:32 -0500 AH00124: 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.Sun, 23 Aug 2015 09:45:30 -0500 AH00124: 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.Sun, 23 Aug 2015 09:45:42 -0500 AH00124: 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.Sun, 23 Aug 2015 16:45:28 -0500 AH00124: 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.

Mon, 24 Aug 2015 00:45:52 -0500 AH00124: 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.

Разрешения на файлы давал те , что нужно и пробовал давать все 777- одна и та-же картина на 2-ух хостингах правда бесплатных. Это париловка со скриптом cool_shop

Aleks03
() автор топика

what a fsck am I reading?!

Срочно поправь разметку, а то ответа так и не получишь.
Как править, написано снизу этой формы, начиная со слов «Внимание»

aol ★★★★★
()
Ответ на: комментарий от aol

htaccess или сервер.

htaccess или сервер.

Readme:Примечание: если по адресу своего шопа/админки вы видете сообщение об серверной ошибке, вроде: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. То попробуйте закомментировать установки php_* в .htaccess

Вот что пишется в логах:

Mon, 24 Aug 2015 00:45:52 -0500 AH00124: 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.

Aleks03
() автор топика
Ответ на: htaccess или сервер. от Aleks03

У тебя походу что-то циклит.

Для определения где, я бы сначала закоментировал все редиркеты, и по одному открывал. Когда словиш ошибку, то нужно смотреть тот файл на котором она случилась (category.php, product.php и т.д.)

webmak ★★
()
Ответ на: комментарий от webmak

Request exceeded the limit of 10 internal redirects

Циклит везде, начиная с индексной страницы. Вот, что пишут в инете:У вас в htaccess прописан какой-то редирект или правило реврайта, которые дают вечное перенаправление, вот сервер и помирает. Иероглифы файла htaccess в первом сообщении. Как его уговорить работать?

Aleks03
() автор топика
Ответ на: Request exceeded the limit of 10 internal redirects от Aleks03

Проблема решена!?

Проблему решил, перейдя на менее ущербный хостинг- такой-же бесплатный. На предыдущем хостинге попросил т/поддержку поменять параметры (???) моего сервера.

Aleks03
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.