0
我对Nginx的使用Wordpress,我需要创建这些301重定向:如何在Nginx的从年/月/ Postname重定向到年/月/分类/ Postname
从
/%year%/%monthnum%/%postname%/
到/%year%/%monthnum%/%category%/%postname%/
从
/%category%/%postname%/
到/%year%/%monthnum%/%category%/%postname%/
我将如何做到这一点?
编写一个PHP脚本。 nginx怎么知道重定向到哪里? –
你能否详细说明你的评论。 –
这不是一个nginx的工作。这是你的应用程序的工作。 –