军哥,301跳转出现问题
我搜索了论坛,没有找到可以解决问题的答案.我用的1.5版本,加了301跳转代码后,网站打不开了,请军哥指正:以下红色字体,对不?server
{
listen 80;
#listen [::]:80;
server_name www.tanghui.org tanghui.org;
RewriteCond %{HTTP_HOST} ^tanghui.org$
RewriteRule ^(.*)$ http://www.tanghui.org/$1
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/default;
include rewrite/wordpress.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log off;
} windows的程序能否直接在linux运行?
一样的道理apache的配置加到nginx上能运行不?
官网上301的教程都写过很多年了,自己搜索一下就能找到
页:
[1]