宝塔(BT)自带301设置无效解决方法
由于最近更换原博客到二级域名发现bt自带的301设置在nginx下无效
解决方案:
修改PHP配置文件
A:https://xl.run/post/1.html
B:https://blog.xl.run/post/1.html
rewrite ^/post/(.*)$ https://blog.xl.run/post/$1 permanent;
如图:
一个在室内建筑装饰工程行业摸爬滚打8年的农民工,在这里记录一些日常生活中的琐事。
由于最近更换原博客到二级域名发现bt自带的301设置在nginx下无效
解决方案:
修改PHP配置文件
A:https://xl.run/post/1.html
B:https://blog.xl.run/post/1.html
rewrite ^/post/(.*)$ https://blog.xl.run/post/$1 permanent;
如图: