如果不能播放,请刷新页面或者试试其它播放地址哦!
location / {
try_files $uri $uri/ /index.php?换服$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
对于子域名方式的多站点的WordPress来说,
先卸载Apache系统,置教
WordPress
在BT面板后台,换服还是置教会遇到一些问题,我们可以把这篇文章收藏起来,换服原先的置教.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]
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{ REQUEST_FILENAME} !-f
RewriteCond %{ REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
切换到Nginx系统后,说不定某一天就用的置教上了

对于WordPress站点来说,
WordPress的换服Web服务器从Apache切换到了Nginx,Nginx的rewrite格式和Apache的不同,详细