虚拟主机支持DZ伪静态规则,xiuno伪静态规则应该如何写?

热码者 10月前 477

如何知晓使用的虚拟主机是怎样的环境来使用相应的规则?http://bbs.xiuno.com/thread-2.htm



DZ伪静态直接上传了“.htaccess”文件,xiuno静态规则应该如何写?


复制xiuno伪静态代码:到文件“.htaccess”

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/(.*)\.htm(.*)$ /admin/index.php?$1.htm$2 [L]
RewriteRule ^mobile/(.*)\.htm(.*)$ /mobile/index.php?$1.htm$2 [L]
RewriteRule ^(.*)\.htm(.*)$ /index.php?$1.htm$2 [L]


上传到根目录提示:



最新回复 (5)
返回
HTTP/1.1 502 Bad Gateway Content-Type: text/html Connection: close Content-Length: 297 Date: Mon, 22 Jan 2018 14:18:48 GMT X-Via: 1.1 tianyi-124 (random:70709 Fikker/Webcache/3.7.4) 502 Bad Gateway

502 Bad Gateway - Cann't Connect To Upstream Server By SSL Read

Server: tianyi-124
Date: 2018-01-22 14:18:48

Fikker/Webcache/3.7.4