Kohana 和 OpenX
我正在尝试在我使用 Kohana 的网站中安装 OpenX。它工作得很好,直到我发现这个错误:
致命错误:未捕获 Kohana_Request_Exception [0]:无法 查找与 URI 匹配的路由: 500.shtml ~ SYSPATH/classes/kohana/request.php [ 第635章 /home/xxxxxx/public_html/plugb/system/classes/kohana/request.php 第 635 行
我当前的 .htaccess 是:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /
# WWW
RewriteCond %{HTTP_HOST} !^www\.plugb\.com [NC]
RewriteRule ^(.*)$ http://www.plugb.com/$1 [R=301,L]
#remove trailing slashes
RewriteCond %{HTTP_HOST} !^\.plugb\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
# 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,L]
Redirect 301 /gamesindex /
为什么我会收到此错误?我该如何修复它?
谢谢你, 加布里埃尔.
I am trying to install OpenX in a website that I use Kohana. It worked fine, until I found this error:
Fatal error: Uncaught
Kohana_Request_Exception [ 0 ]: Unable
to find a route to match the URI:
500.shtml ~ SYSPATH/classes/kohana/request.php [
635 ] thrown in
/home/xxxxxx/public_html/plugb/system/classes/kohana/request.php
on line 635
My current .htaccess is:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /
# WWW
RewriteCond %{HTTP_HOST} !^www\.plugb\.com [NC]
RewriteRule ^(.*)$ http://www.plugb.com/$1 [R=301,L]
#remove trailing slashes
RewriteCond %{HTTP_HOST} !^\.plugb\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
# 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,L]
Redirect 301 /gamesindex /
Why am I getting this error? How can I fix it?
Thank you,
Gabriel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
24 小时后该错误不再出现。
This error stopped appearing after 24h.