whatsns系统在apache的web服务器上的伪静态和http跳转https配置

请将如下代码复制粘贴到问答根目录的.htaccess文件里

  RewriteEngine on

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteCond %{HTTP_HOST} ^lvyou.whatsns.com [NC]

RewriteCond %{SERVER_PORT} !^443$

RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

  RewriteRule ^.*$ index.php?$0


如图:

\"image.png\"/