我有一个用Kohana框架写的整个网站,不是我写的,我只是在很久以后帮助启动它,如果我是对的,它是在2009年写的。
所以,我上传了所有文件,插入了Mysql数据并进行了配置,我去网站:
adress.com 并重定向到 adress.com/index.php/lt
但后来我看到的只是白页,没有标题,什么都没有。Kohana 日志显示:
2012-08-26 22:56:48 +03:00 --- debug: Auth Library loaded
2012-08-26 22:56:48 +03:00 --- debug: MySQL Database Driver Initialized
2012-08-26 22:56:48 +03:00 --- debug: Database Library initialized
2012-08-26 22:56:49 +03:00 --- debug: Global GET, POST and COOKIE data sanitized
2012-08-26 22:56:49 +03:00 --- debug: Session Cookie Driver Initialized
2012-08-26 22:56:49 +03:00 --- debug: Session Library initialized
2012-08-26 22:56:49 +03:00 --- debug: Auth Library loaded
2012-08-26 22:56:49 +03:00 --- debug: MySQL Database Driver Initialized
2012-08-26 22:56:49 +03:00 --- debug: Database Library initialize
然后服务器日志显示:
[Sat Aug 25 12:51:47 2012] [error] [client 94.244.82.207] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
[Sat Aug 25 12:51:48 2012] [error] [client 94.244.82.207] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
这是 .htaccess 文件:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /sporttv/
# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) - [F,L]
# Protect .git files
RewriteRule ^.git - [F,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]