当前位置:网站首页>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 
边栏推荐
- 第三方跳转网站 出现 405 Method Not Allowed
- Neon Optimization: an optimization case of log10 function
- Yunna | work order management measures, how to carry out work order management
- Install Firefox browser on raspberry pie /arm device
- WCF基金会
- Can the system hibernation file be deleted? How to delete the system hibernation file
- 2022 Google CTF SEGFAULT LABYRINTH wp
- [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)
- [advanced C language] 8 written questions of pointer
- ClickHouse字段分组聚合、按照任意时间段粒度查询SQL
猜你喜欢
![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]

mongodb查看表是否导入成功

Go zero micro service practical series (IX. ultimate optimization of seckill performance)

黑马笔记---创建不可变集合与Stream流

修改px4飞控的系统时间

移植DAC芯片MCP4725驱动到NUC980

Asset security issues or constraints on the development of the encryption industry, risk control + compliance has become the key to breaking the platform

HMM 笔记

c语言—数组

go-zero微服务实战系列(九、极致优化秒杀性能)
随机推荐
移植DAC芯片MCP4725驱动到NUC980
Can the system hibernation file be deleted? How to delete the system hibernation file
Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
Meet in the middle
Install Firefox browser on raspberry pie /arm device
安利一波C2工具
搭建【Redis in CentOS7.x】
机器学习:随机梯度下降(SGD)与梯度下降(GD)的区别与代码实现。
Set up [redis in centos7.x]
增加 pdf 标题浮窗
长按按钮执行函数
分享一个通用的so动态库的编译方法
How to evaluate load balancing performance parameters?
golang 基础 —— 数据类型
树莓派/arm设备上安装火狐Firefox浏览器
2022 Google CTF SEGFAULT LABYRINTH wp
Taro 小程序开启wxml代码压缩
Case development of landlord fighting game
Instructions for using the domain analysis tool bloodhound
黑马笔记---创建不可变集合与Stream流