当前位置:网站首页>Set WordPress pseudo static connection (no pagoda)
Set WordPress pseudo static connection (no pagoda)
2022-07-07 01:35:00 【Zhixia】
Set up Wordpress Pseudo static links
Apache2.4
This article is not set by yourself when using pagoda , Please ignore those who install pagodas
Environmental Science :Ubuntu20.04 Apache2.4 Wordpress5.9.2
Rewriting rule
Turn on rewrite rules
sudo a2enmod rewrite
Set root directory redirection
sudo vim /etc/apache2/apache2.conf
find
<Directory /var/www/>
take
AllowOverride
AfterNone
It is amended as followsALL
.Get into Wordpress Choose your favorite pseudo static in the background , And click save , Automatic generation
.hatccess
Rule and copy , as follows :<IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^^unsubscribe-comment-mailnotice/?(.*)$ //wp-con> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
- In just
/var/www/
Under the table of contents ( That is, the root directory of the website ) establish.hatccess
file
Paste the rule code you just copied and save .
- In just
Restart the server
sudo systemctl restart apache2
design sketch
Nginx1.19
This article is not set by yourself when using pagoda , Please ignore those who install pagodas
Environmental Science :Raspi OS 64bit(Debian11) Wordpress5.9.2
Open profile sudo vim /etc/nginx/sites-available/default
If wordpress Install in the root directory of the website , stay server Add
location / {
if (!-e $request_filename) {
rewrite (.*) /index.php;
}
}
If wordpress Install in the secondary directory of the website , stay server Add :
location / Two level directory / {
if (!-e $request_filename) {
rewrite (.*) /cn/index.php;
}
}
restart sudo /etc/init.d/ngnix restart
stay wordpress Just set the required fixed link in the background
边栏推荐
- LeetCode. 剑指offer 62. 圆圈中最后剩下的数
- C language - array
- Gazebo的安装&与ROS的连接
- AcWing 346. 走廊泼水节 题解(推公式、最小生成树)
- 增加 pdf 标题浮窗
- mongodb查看表是否导入成功
- 剑指 Offer II 035. 最小时间差-快速排序加数据转换
- Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
- Go zero micro service practical series (IX. ultimate optimization of seckill performance)
- 各种语言,软件,系统的国内镜像,收藏这一个仓库就够了: Thanks-Mirror
猜你喜欢
1123. 最深叶节点的最近公共祖先
mongodb查看表是否导入成功
Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman
tansig和logsig的差异,为什么BP喜欢用tansig
免费白嫖的图床对比
405 method not allowed appears when the third party jumps to the website
一起看看matlab工具箱内部是如何实现BP神经网络的
Clickhouse fields are grouped and aggregated, and SQL is queried according to the granularity of any time period
2022 Google CTF SEGFAULT LABYRINTH wp
Installation of gazebo & connection with ROS
随机推荐
C语言实例_2
Send template message via wechat official account
Neon Optimization: an optimization case of log10 function
405 method not allowed appears when the third party jumps to the website
Add the applet "lazycodeloading": "requiredcomponents" in taro,
交叉验证如何防止过拟合
如何管理分布式团队?
云呐|工单管理软件,工单管理软件APP
C语言实例_5
Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
Gazebo的安装&与ROS的连接
图片打水印 缩放 和一个输入流的转换
字节P7专业级讲解:接口测试常用工具及测试方法,福利文
Spark TPCDS Data Gen
What does security capability mean? What are the protection capabilities of different levels of ISO?
搭建【Redis in CentOS7.x】
AcWing 344. 观光之旅题解(floyd求无向图的最小环问题)
Dark horse notes - create immutable sets and streams
Sword finger offer II 035 Minimum time difference - quick sort plus data conversion
Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman