LAMP环境搭建typecho除了主页其他都是404
- m4go
- 帖子: 857
- 注册时间: 2010年 3月 29日 02:33
- 来自: https://www.vpshu.com
- 联系:
Re: LAMP环境搭建typecho除了主页其他都是404
伪静态 .htaccess 放置根目录试试
代码: 全选
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Re: LAMP环境搭建typecho除了主页其他都是404
把伪静态直接添加到网站conf 上
- zhc123
- 帖子: 125
- 注册时间: 2010年 10月 20日 17:47
- 来自: http://www.upcd.net
- 联系:
Re: LAMP环境搭建typecho除了主页其他都是404
修改配置文件
/usr/local/nginx/conf/vhost/xxx.conf
include enable-php.conf 改为:
include enable-php-pathinfo.conf;
然后重启。
/usr/local/nginx/conf/vhost/xxx.conf
include enable-php.conf 改为:
include enable-php-pathinfo.conf;
然后重启。