请问军哥301重定向怎么重定到淘宝网址
server{
listen 80;
server_name XXX.com www.XXX.com;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/XXX;
location ~ .*\.(php|php5)?$
{
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;
}
www.XXX.com是我的网址,请问怎么重定向到我的淘宝店网址:http://shop105809041.taobao.com/ rewrite ^ https://www.vpser.net;
网址提供为你要跳转到的地址
加到root 行下面
重启 nginx
回复 2# 的帖子
谢谢军哥,搞定了。发现军哥真的很负责任。一有问题就马上解决。
页:
[1]