我(wo)的主機在西部(bu)數碼,操作系統是Linux 環境是Apache
我現在需要把全站全部改為https,但是(shi)從(cong)西數(shu)后臺獲取的規則我咋加上(shang)去是(shi)個錯誤呢?而(er)且想把根域名也做301跳(tiao)轉。代碼(ma)如下
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:From-Https} !^on$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?300china.net$ [NC]
RewriteRule ^(.*)$ //www.300china.net/$1 [R=301,L]
RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
RewriteCond % !^$
RewriteRule ^/?(.*)/.*.sql - [F]
</IfModule>
</IfModule>

希望大神幫我看(kan)看(kan)是(shi)怎么回事,