当前位置:网站首页>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 
边栏推荐
猜你喜欢

2022 Google CTF SEGFAULT LABYRINTH wp
![JS reverse -- ob confusion and accelerated music that poked the [hornet's nest]](/img/40/da56fe6468da64dd37d6b5b0082206.png)
JS reverse -- ob confusion and accelerated music that poked the [hornet's nest]

Dark horse notes - create immutable sets and streams

454-百度面经1

Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which

LeetCode. 剑指offer 62. 圆圈中最后剩下的数

Yunna - work order management system and process, work order management specification

微信公众号发送模板消息

Comparison of picture beds of free white whoring

The MySQL database in Alibaba cloud was attacked, and finally the data was found
随机推荐
Neon Optimization: performance optimization FAQ QA
taro3.*中使用 dva 入门级别的哦
Taro中添加小程序 “lazyCodeLoading“: “requiredComponents“,
Yunna | work order management software, work order management software app
POJ 3177 Redundant Paths POJ 3352 Road Construction(双连接)
AcWing 361. 观光奶牛 题解(spfa求正环)
免费白嫖的图床对比
从零开始匹配vim(0)——vimscript 简介
AcWing 1141. 局域网 题解(kruskalkruskal 求最小生成树)
系统休眠文件可以删除吗 系统休眠文件怎么删除
json学习初体验–第三者jar包实现bean、List、map创json格式
【芯片方案设计】脉搏血氧仪
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
mysqlbackup 还原特定的表
HMM notes
AcWing 344. 观光之旅题解(floyd求无向图的最小环问题)
Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
Body mass index program, entry to write dead applet project
AcWing 1148. 秘密的牛奶运输 题解(最小生成树)
Metauniverse urban legend 02: metaphor of the number one player