当前位置:网站首页>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
边栏推荐
- Neon Optimization: summary of performance optimization experience
- Amway wave C2 tools
- 从零开始匹配vim(0)——vimscript 简介
- Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman
- 鼠标右键 自定义
- 字节P7专业级讲解:接口测试常用工具及测试方法,福利文
- C语言实例_5
- AcWing 344. 观光之旅题解(floyd求无向图的最小环问题)
- AI 从代码中自动生成注释文档
- Sword finger offer II 035 Minimum time difference - quick sort plus data conversion
猜你喜欢
Clickhouse fields are grouped and aggregated, and SQL is queried according to the granularity of any time period
Transplant DAC chip mcp4725 to nuc980
Send template message via wechat official account
云呐-工单管理制度及流程,工单管理规范
Let's see through the network i/o model from beginning to end
Asset security issues or constraints on the development of the encryption industry, risk control + compliance has become the key to breaking the platform
Yunna | work order management measures, how to carry out work order management
Comparison of picture beds of free white whoring
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
从底层结构开始学习FPGA----FIFO IP的定制与测试
随机推荐
Sword finger offer II 035 Minimum time difference - quick sort plus data conversion
一起看看matlab工具箱内部是如何实现BP神经网络的
Comparison of picture beds of free white whoring
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
Wood extraction in Halcon
系统休眠文件可以删除吗 系统休眠文件怎么删除
Body mass index program, entry to write dead applet project
从零开始匹配vim(0)——vimscript 简介
2022 Google CTF SEGFAULT LABYRINTH wp
C语言实例_3
编译命令行终端 swift
Add the applet "lazycodeloading": "requiredcomponents" in taro,
Table table setting fillet
Installation and testing of pyflink
Spark TPCDS Data Gen
[chip scheme design] pulse oximeter
table表格设置圆角
1123. 最深叶节点的最近公共祖先
C language instance_ two
公钥\私人 ssh避password登陆