0
내 Laravel 프로젝트가 이미 공유 호스팅 서버에 있습니다. (나는 당신이 생각하는 것을 알고 있습니다 ...). 그리고 루트 폴더 안에이 코드가있는 htaccess로 파일을 가지고 :https를 사용하는 Laravel 공용 폴더에 htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
</IfModule>
# For all files not found in the file system, reroute the request to the
# "index.php" front controller, keeping the query string intact
<IfModule mod_rewrite.c>
RewriteCond $1 !^(public)
RewriteRule ^(.*)$ /public/$1 [L]
</IfModule>
이 내게 좋은 URL의 "공개"없이 제공을하지만, 하나의 경우가 있습니다 : 내가 갈 경우
www.example.com
그래서
https://www.example.com
항상 URL에 https로 유지를 : 내가 가면 항상 ..... URL로 WWW 유지 // ....
내 질문 : 먼저 www 또는 https를 입력하면 URL이 항상 https://www.example.com이됩니다.