0
我需要从根重写用户到index.php因为现在在谷歌分析我看到2号线:Nginx的用户重定向从/到index.php
/ ............. 112
/index.php ............. 34
我如何可以重定向谁打开http://example.com和http://example.com/用户http://example.com/index.php ?
我需要从根重写用户到index.php因为现在在谷歌分析我看到2号线:Nginx的用户重定向从/到index.php
/ ............. 112
/index.php ............. 34
我如何可以重定向谁打开http://example.com和http://example.com/用户http://example.com/index.php ?
这种方式为我工作:
location =/{
return 301 /index.php;
}
看到http://nginx.org/en/docs/http/ngx_http_index_module.html#index – Lution