0
我正在PHP中改变标题进行临时重定向。PHP/NGINX:301重定向
不过我想现在直接做一个简单的页301重定向在Nginx的:
http://domain.com/example.php?var=value
到:
我想:
location/{
index index.htm index.php;
rewrite example.php?var=value/permanent;
}
但它不工作...
任何想法?
谢谢。
你是否在运行PHP?如果是的话,你如何做到这一点?通过代理或fastcgi? – Dayo