当前位置:网站首页>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 rewriteSet root directory redirection
sudo vim /etc/apache2/apache2.conffind
<Directory /var/www/>
take
AllowOverrideAfterNoneIt is amended as followsALL.Get into Wordpress Choose your favorite pseudo static in the background , And click save , Automatic generation
.hatccessRule 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.hatccessfile
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 
边栏推荐
- 树莓派/arm设备上安装火狐Firefox浏览器
- [JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)
- C语言实例_4
- 2022 Google CTF segfault Labyrinth WP
- LeetCode:1175. Prime permutation
- table表格设置圆角
- Realize incremental data synchronization between MySQL and ES
- 一起看看matlab工具箱内部是如何实现BP神经网络的
- 字节P7专业级讲解:接口测试常用工具及测试方法,福利文
- Transplant DAC chip mcp4725 to nuc980
猜你喜欢

系统休眠文件可以删除吗 系统休眠文件怎么删除

对C语言数组的再认识

Body mass index program, entry to write dead applet project

Wood extraction in Halcon

HMM 笔记

Make Jar, Not War

Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman

Typical problems of subnet division and super network construction

454-百度面经1

Transplant DAC chip mcp4725 to nuc980
随机推荐
Spark TPCDS Data Gen
Neon Optimization: an optimization case of log10 function
Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman
json学习初体验–第三者jar包实现bean、List、map创json格式
Comparison of picture beds of free white whoring
7.6 simulation summary
图片打水印 缩放 和一个输入流的转换
从零开始匹配vim(0)——vimscript 简介
LeetCode:1175. Prime permutation
免费白嫖的图床对比
树莓派/arm设备上安装火狐Firefox浏览器
Typical problems of subnet division and super network construction
How to evaluate load balancing performance parameters?
Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
The MySQL database in Alibaba cloud was attacked, and finally the data was found
Gnet: notes on the use of a lightweight and high-performance go network framework
go-zero微服务实战系列(九、极致优化秒杀性能)
移植DAC芯片MCP4725驱动到NUC980
子网划分、构造超网 典型题
Go zero micro service practical series (IX. ultimate optimization of seckill performance)