WordPress设置301跳转方法(能不用插件就不要用插件)
WordPress实现 https://yourwebsite.com/old-url 重定向到 https://yourwebsite.com/new-url
Apache服务器
服务器根目录/public_html/下.htaccess文件
Redirect 301 https://yourwebsite.com/old-url https://yourwebsite.com/new-url
Nginx服务器
nginx.conf配置文件
location /old-url {return 301 https://yourwebsite.com/new-url;}