だから私は次のことをしたい:
ユーザーがindex.php以外のサイトのypartにアクセスしようとすると、httpsバージョンにリダイレクトされます。
したがって、example.com / index.phpにアクセスしようとしても、httpsバージョンにリダイレクトされません。
ただし、index.php以外のサイト(welcome.phpなど)にアクセスすると、httpsバージョンにリダイレクトされます。
これが私が以前にフルサイトhttpsリダイレクトを行った方法です(index.phpのhttpsサンプルへのフルサイトリダイレクトを行う方法がわかりません)
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ https://www.handybook.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} !^www.example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php