Kohana 和 OpenX

发布于 2024-09-15 20:04:02 字数 1524 浏览 2 评论 0原文

我正在尝试在我使用 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 行

网址是: http:// /www.plugb.com/openx/www/admin/plugins/oxMarket/market-campaign-edit.php?clientid=1&campaignid=

我当前的 .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

The url is:
http://www.plugb.com/openx/www/admin/plugins/oxMarket/market-campaign-edit.php?clientid=1&campaignid=

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜嗑 2024-09-22 20:04:02

24 小时后该错误不再出现。

This error stopped appearing after 24h.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文