0
1ページを除くすべてのページをhttpsにリダイレクトしたい!.htaccess force httpsただし、httpまたはhttpsで1ページのみ
このページはがHTTPを介してアクセスする必要がありwww.domain.com/data/push-send://またはhttps://
これは私の現在のコードです:
RewriteEngine On
# Redirect external .php requests to extensionless url
RewriteCond %{THE_REQUEST} ^(.+)\.php([#?][^\ ]*)?\ HTTP/
RewriteRule ^(.+)\.php$ /$1 [R=301,L]
# enforce a no-trailing-slash policy
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Redirect api to data/push-send
RewriteRule ^api$ data/push-send [qsappend,L]
# no index in URL
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^(.*)$ http://www.domain.com [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/
RewriteRule ^(.*)$ http://www.domain.com [L,R=301]
# force https
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,qsappend,L]
どのように私ケビン