The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Отладка mod_rewrite (.htaccess), !*! GTHack, 18-Сен-07, 13:03  [смотреть все]
Не работает довольно стандартный набор правил для мод-реврайта

(.htaccess в директории ./rewrite/)

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /rewrite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /rewrite/index.php [L]
</IfModule>

даёт 500ю Internal Server Error, вот лог аппача

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.

т.е. петля получилась почему то :(

поставил
RewriteLogLevel 3

вот одна из "попыток" из лога мод-реврайта

strip per-dir prefix: /var/vhosts/domain.com/httpdocs/proxy5/index.php -> index.php
applying pattern '.' to uri 'index.php'                                              
strip per-dir prefix: /var/vhosts/domain.com/httpdocs/proxy5/index.php -> index.php
applying pattern '.' to uri 'index.php'                                              
rewrite 'index.php' -> '/proxy5/index.php'                                          
trying to replace prefix /var/vhosts/domain.com/httpdocs/proxy5/ with /proxy5/    
internal redirect with /proxy5/index.php [INTERNAL REDIRECT]                        
applying pattern '.' to uri 'redirect:/proxy5/index.php'                            
rewrite 'redirect:/proxy5/index.php' -> '/proxy5/index.php'                          
trying to replace prefix /var/vhosts/domain.com/httpdocs/proxy5/ with /proxy5/    
internal redirect with /proxy5/index.php [INTERNAL REDIRECT]                      

вижу что косячит, а как поправить не знаю :(
помогите плс




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру