Closed pdwl closed 5 years ago
你可以看下404是php返回的还是nginx/apache返回的 如果是前者 需要创建testAction.php 包含function action_index 如果是后者请参考wiki文档正确配置下nginx/apache
windows环境下apache
.htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php </IfModule>
希望遇到相同问题的人,能看到吧!
可以参考文档里配置
http://www.billge.cc/#overview-index
appache根目录要设置在框架的 /web
目录下
设置文档根目录为框架/web目录
DocumentRoot "/data/billge/biny/web/"
<Directory "/data/billge/biny/web/">
RewriteEngine on
# 如果请求的是真实存在的文件或目录,直接访问
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# 如果请求的不是真实文件或目录,分发请求至 index.php
RewriteRule . index.php
# ...other settings...
</Directory>
http://localhost/test/index/ 直接404!伪静态加上去直接500