请问有用wordpress的吗?添加默认的wordpress和discuz的rewrite规则,好像没效果
wordpress固定链接设置了,虚拟主机里已经添加了wordpress和discuz的rewrite规则了。请问军哥,这个设置正确吗?
server
{
listen 80;
server_name buy.veryad.com;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/demonwork.com;
include wordpress.conf,discuz.conf;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
[ 本帖最后由 veryad 于 2013-3-18 16:25 编辑 ] 贴配置文件
回复 2# 的帖子
添加虚拟主机的时候,在这里如果直接回车,是默认了上面列出的所有规则,还是一个也没添加?如果添加多个,中间是加英文逗号,还是分号呢?
谢谢军哥 直接回车就是什么伪静态都没有
伪静态只能输入一个
如果2个伪静态需要你自行确认没有干扰才行
你的配置include wordpress.conf,discuz.conf;这样语法是错误的
include wordpress.conf;
include discuz.conf;
这样才行 十分感谢军哥的指点!
页:
[1]