问题复现
访问自己的博客url会带有固定链接,如:
http://blog.wsppx.cn/index.php/2021/06/17/python%e7%b3%bb%e5%88%97%e4%b9%8b%e5%9f%ba%e7%a1%80%e7%af%87%e4%b8%80/
原因
- 进入wp-admin后台设置里面,可以看到固定链接,去掉就行
- 去掉之后会出现404,在nginx内部添加如下代码
location /
{
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
- 如果是宝塔就更简单了
原创文章,作者:站长,如若转载,请注明出处:https://wsppx.cn/80/%e7%bd%91%e7%ab%99%e9%83%a8%e7%bd%b2/
相关推荐
-
Centos配置国内源
默认centos是国外的源,不管下载还是更新,速度都差强人意,下面介绍如何改为国内源 更换Yum源 更换pip源 更换docker源 python3运行环境
-
配置本地nginx代理文件服务
关闭selinux 不关闭nginx会403 2021/11/18 15:33:07 [error] 7250#7250: *23 opendir() “/data/d…
-
群晖gitlab迁移到另外一台机器
群晖使用docker部署了gitlab,现在迁移到另外一台机器 使用snapshot 复制docker整个文件夹到另外一台机器 2. 下载相同版本的gitlab镜像,这里是10.0…
-
postman使用pre-request-script,可以减少手动获取cookie的次数
前言 一般公司都是使用sso单点登录,接口是oauth2.0标准的,每次请求都需要将Authorization带上。而这个字段又需要从页面上手动登录后再获取,比较麻烦,这里推荐使用…
-
黑群晖:此帐户的密码已过期。请联系系统管理员。
进入到PE界面 如果是esxi系统,或者其他虚拟机系统,给黑群晖的系统添加一个cd盘,里面挂载大白菜或者老毛桃ios pe镜像。 开机进入到pe镜像 打开dg软件,选择一个2.4g…
-
群晖开启nfs给其他系统挂载
开启nfs,这里版本建议选v4,因为centos默认支持v4 设置哪个文件夹需要开启nfs权限 在控制面板中/文件 这里的Squash一定要无映射,不然docker使用nfs各种权…
-
PVE 系统更换主机没有网络的问题
当你在A机器上安装好了pve系统,现在想直接把A机器的pve系统硬盘换到B机器上,那么由于B机器的网口和A不一样,导致启动之后没有网络 解决方法 通过ip addr show查看当…
-
记一次网站dns被攻击,域名指向的地址被修改了
背景 早上访问wsppx.cn,浏览器提示有风险,查看了证书并未过期,但是浏览器的证书提示与当前的域名不一致 证书变为uisp.com 所以ping 了一下wsppx.cn,发现i…