【发布时间】:2012-09-11 03:57:10
【问题描述】:
我不得不将我的所有网站都移至其父网站。改动前:
/
/yii
/new
/css
/js
/img
/protected
/...
在此更改之后:
/
/yii
/css
/js
/img
/protected
/...
我更改了 index.php 文件以指向 yii 的正确路径。但是,当我调用任何控制器时,它现在会显示此错误:
禁止
您无权访问此服务器上的 /admin。
/admin 可以是我站点中的任何控制器或模块。我的 .htaccess,现在也是 root,如下:
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
在我向上移动网站之前,它运行良好。以前有人遇到过吗?感谢您抽出宝贵时间。
【问题讨论】:
标签: php yii http-status-code-403