Warning: include_once(): open_basedir restriction in effect. File(/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache-phase1.php) is not within the allowed path(s): (/www/wwwroot/www.rixin.info/:/tmp/) in /www/wwwroot/www.rixin.info/www/wp-content/advanced-cache.php on line 22

Warning: include_once(/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache-phase1.php): failed to open stream: Operation not permitted in /www/wwwroot/www.rixin.info/www/wp-content/advanced-cache.php on line 22

Warning: include_once(): Failed opening '/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache-phase1.php' for inclusion (include_path='.:') in /www/wwwroot/www.rixin.info/www/wp-content/advanced-cache.php on line 22

Warning: include(): open_basedir restriction in effect. File(/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache-base.php) is not within the allowed path(s): (/www/wwwroot/www.rixin.info/:/tmp/) in /www/wwwroot/www.rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include(/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: Operation not permitted in /www/wwwroot/www.rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include(): Failed opening '/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:') in /www/wwwroot/www.rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include_once(): open_basedir restriction in effect. File(/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/ossdl-cdn.php) is not within the allowed path(s): (/www/wwwroot/www.rixin.info/:/tmp/) in /www/wwwroot/www.rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 118

Warning: include_once(/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: Operation not permitted in /www/wwwroot/www.rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 118

Warning: include_once(): Failed opening '/www/wwwroot/rixin.info/www/wp-content/plugins/wp-super-cache/ossdl-cdn.php' for inclusion (include_path='.:') in /www/wwwroot/www.rixin.info/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 118
AMH面板使用Z-blogPHP伪静态的方法|网站建设

AMH面板使用Z-blogPHP伪静态的方法

我的一台阿里云服务器使用Z-blogPHP建一个网站,使用AMH面板,那么在这个面板下面如何实现Z-blogPHP伪静态化呢?

我的阿里云服务器是Linux的,操作系统是CentOS 7.5 64位,然后装的是AMH面板,环境是Nginx+php+MYSQL。只要是Nginx下的伪静态都是差不多的。具体步骤如下:

在新建环境的时候伪静态规则文件要选择好:

AMH面板使用Z-blogPHP伪静态的方法

Z-blogPHP后台-插件管理-静态管理中心,设置好伪静态各项规则(具体可参考:Z-blogPHP伪静态规则(URL配置)案例说明),设置完后将得到的ReWrite规则复制下来。

amh管理面板中通过文件管理打开网站的伪静态规则文件amh.conf,将刚才得到的ReWrite规则粘贴在这里,注意要将ReWrite规则放在location / { }的花括号里面,完整代码如下:

AMH面板使用Z-blogPHP伪静态的方法

红框为你自己的ReWrite规则。

最后重启下nginx。整个阿里云服务器linux系统使用Z-blogPHP伪静态就完成了。

AMH面板使用Z-blogPHP伪静态的方法:等您坐沙发呢!

发表评论

表情
还能输入210个字