转到某些编辑页面时出现Kohana 404错误

时间:2015-10-26 15:24:32

标签: url routing http-status-code-404 kohana

我在Kohana框架中编码的网站存在问题。 我不是它的作者,但我需要改变托管。

我把它从其他网站移到了新的一切都没关系,但是当我去一些页面时,我会在我的网站上编辑一些对象(管理面板 - &gt;对象(例如酒店,旅游等)和我选择某个对象并想要对其进行编辑,然后页面从网址sitename.xyz/admin,hotels,edit,<id>转到sitename.xyz/404error

sitename.xyz/admin,hotels,listsitename.xyz/admin,hotels,add正常运作。

我不知道我可以附加什么代码。我添加了.htacces代码,但是如果需要的话 - 请注意我,我会编辑帖子。我的页面在线,所以如果有人需要,我可以提供链接。

.htacces代码:

DirectorySlash Off
RewriteEngine On
RewriteBase /

###### Add trailing slash (optional) ######
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [L,R=301,NE]

RewriteCond %{REQUEST_METHOD} !POST
RewriteRule ^(.*)public_html/index.php/(.*)$ /$1$2 [R=301,L,NE]

RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|media)
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L,QSA]

0 个答案:

没有答案