Страница 1 из 1

Mod rewrite

Добавлено: 2013-05-11 20:58:35
tj.anton
остоянные ошибки от mod rewrite, т.к. он включен в htaccess

Код: Выделить всё

Options -Indexes 
ErrorDocument 404 /404.php

<IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
  RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
</IfModule>

<IfModule mod_dir.c>
  DirectoryIndex index.php index.html
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresByType image/jpeg "access plus 3 day"
  ExpiresByType image/gif "access plus 3 day"
</IfModule>

Ошибка: 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.

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

Re: Mod rewrite

Добавлено: 2014-03-22 12:54:15
Alex Keda

Код: Выделить всё

ErrorDocument 404 /404.php
этот файл есть?
--
вообще ответ очевиден и написан в саомй ошибке -не делать так много перенаправлений =)