所以,我上传了所有文件,插入了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]
答案 0 :(得分:0)
您的.htaccess
文件中存在错误。这是一个有效的例子:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /sporttv/
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [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]