這聽起來像這樣的東西編輯應該很簡單......如果添加https:
如果不上,有一個字符串,包括後page=postratingspro
或page=paypaltest
的.htaccess爲HTTPS URL後也
下面的代碼的URL定義我使用的,與別人的幫助下在這裏計算器:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase/
RewriteCond %{HTTPS} off
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+index\.php\?page=(paypaltest|postratingspro)[&\s] [NC]
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} on
RewriteCond %{QUERY_STRING} !(^|&)page=(paypaltest|postratingspro)(&|$) [NC]
RewriteRule ^(index\.php)?$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NC]
在看這個[&\s]
和(&|$)
所以不知道如何做到這一點需要改變包括任何弦呢?所以它也應該將協議更改爲https
爲URL如果此URL已定義:http://mydomain.com/index.php?page=postratingspro;sa=thankyou 但是,如果它已被設置爲https
它應該不會改變它。
謝謝,這正是我所需要的'\ b' –
耶,很高興有幫助。我的第一個綠色勾號! :d –