Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Денис 01.07.2002 16:17
Задача такова - на запрос документа /aaa/bbb/ccc.html делать редирект на index.html, дальше средствами Parser разбирать uri, строить страницу и отдавать ее бровзеру.RewriteRule !\.(gif|jpg|png|css)$ /index.html [NS] RewriteLog "c:/public_html/tpp/rewrite.log" RewriteLogLevel 2В результате Apache зацикливается. Вот кусок из rewrite.log
192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c2ab0/initial] (2) init rewrite engine with requested uri /eng 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c2ab0/initial] (2) rewrite /eng -> /index.html 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c2ab0/initial] (2) local path result: /index.html 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c2ab0/initial] (2) prefixed with document_root to c:/public_html/tpp/index.html 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c2ab0/initial] (1) go-ahead with c:/public_html/tpp/index.html [OK] 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c3c50/initial/redir#1] (2) init rewrite engine with requested uri /cgi-bin/parser3.exe/eng 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c3c50/initial/redir#1] (2) rewrite /cgi-bin/parser3.exe/eng -> /index.html 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c3c50/initial/redir#1] (2) local path result: /index.html 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c3c50/initial/redir#1] (2) prefixed with document_root to c:/public_html/tpp/index.html 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c3c50/initial/redir#1] (1) go-ahead with c:/public_html/tpp/index.html [OK] 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c0a40/initial/redir#2] (2) init rewrite engine with requested uri /cgi-bin/parser3.exe/cgi-bin/parser3.exe/eng 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c0a40/initial/redir#2] (2) rewrite /cgi-bin/parser3.exe/cgi-bin/parser3.exe/eng -> /index.html 192.168.1.10 - - [01/Jul/2002:16:21:53 +0600] [tpp/sid#527188][rid#5c0a40/initial/redir#2] (2) local path result: /index.html ...Кто-нибудь с этим сталкивался? :( Help, pls.