一、根目录域名
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.fuwuqijia.com/$1 [R,L]
二、子目录
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} 子目录文件夹
RewriteRule ^(.*)$ https://www.fuwuqijia.com/子目录文件夹 [R,L]
根据我们实际的站点域名来设定添加到当前站点根目录的.htaccess文件即可生效。