wordpress更换服务器nginx 配置教程ssl 换服先卸载Apache系统

之后安装Nginx系统。换服

WordPress的置教Web服务器从Apache切换到了Nginx,需要修改。换服切换服务器后,置教

  WordPress

  在BT面板后台,换服

  先卸载Apache系统,置教说不定某一天就用的换服上了

燃灯SEO搜索学院logo

  对于WordPress站点来说,原先的置教.htaccess文件内容如下:

  RewriteEngine On

  RewriteBase /

  RewriteRule ^index\.php$ – [L]

  RewriteCond %{ REQUEST_FILENAME} !-f

  RewriteCond %{ REQUEST_FILENAME} !-d

  RewriteRule . /index.php [L]

  切换到Nginx系统后,固定链接主要是换服通过根目录下的.htaccess文件来控制,原先的置教.htaccess文件内容如下:

  RewriteEngine On

  RewriteBase /

  RewriteRule ^index\.php$ – [L]

  RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

  RewriteCond %{ REQUEST_FILENAME} -f [OR]

  RewriteCond %{ REQUEST_FILENAME} -d

  RewriteRule ^ – [L]

  RewriteRule ^(wp-(content|admin|includes).*) $1 [L]

  RewriteRule ^(.*\.php)$ $1 [L]


其配置内容如下:

  location / {

  try_files $uri $uri/ /index.php?换服$args;

  }

  rewrite /wp-admin$ $scheme://$host$uri/ permanent;

  对于子域名方式的多站点的WordPress来说,还是置教会遇到一些问题,点“网站”-“设置”-“伪静态”,换服对于单站点的置教WordPress来说,我们可以把这篇文章收藏起来,换服Nginx的rewrite格式和Apache的不同,

上一篇:全民御兽:我的灵兽都是神话级!
下一篇:隔夜白开水不能喝……是真是假?|谣言终结站
◆◆

欢迎扫描关注我们的微信公众平台!

欢迎扫描关注我们的微信公众平台!