WDCP如何操作WORDPRESS伪静态规则?
发布时间:2022-06-21 19:28:22 所属栏目:教程 来源:互联网
导读:登录WDCP后台,点击网站管理-rewrite规则管理-增加 文件名:wordpress-nginx.conf 内容: location /themes/.*.(html|xml)$ { return 403; } location /mobile { if (!-e $request_filename) { rewrite ^/mobile/(.*)$ /mobile/index.php last; } } if (
登录WDCP后台,点击“网站管理”-“rewrite规则管理”-“增加” 文件名:wordpress-nginx.conf 内容: location /themes/.*.(html|xml)$ { return 403; } location /mobile { if (!-e $request_filename) { rewrite ^/mobile/(.*)$ /mobile/index.php last; } } if (!-e $request_filename) { rewrite ^(.*)$ /index.php last; } 保存 点击“站点列表”-“编(编辑站点)”,在“支持rewrite”里选择“wordpress-nginx”,保存即可,无需重启就能生效。 (编辑:随州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |