현재이 .htaccess를 사용하여 디렉토리가있는 페이지의 모든 요청을 내 index.php로 리디렉션합니다.주소 재 작성 중 .htaccess로 SSL 강제 실행
RewriteEngine on
RewriteCond $1 !^(index\.php|cas)
RewriteRule ^(.*)$ /seattle/index.php/$1 [L]
그리고이 작업은 정상적으로 작동하며 index.php를 숨기는 URL을 생성하며 코드가 있습니다. index.php는 URL을 깨끗하게 보입니다.
하지만 이제 강제로 ssl을 통해 페이지를 연결해야하므로
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteCond $1 !^(index\.php|cas)
RewriteRule ^(.*)$ https://example.com/seattle/index.php/$1 [L]
를 강제로 ssl로 작동하지만 이제는 URL에 강제로 index.php가 포함됩니다.
https://example.com/seattle/index.php/pagename
https://example.com/seattle/pagename
무엇이 누락 되었습니까?
한 아름다운 다시 쓰기 (내부 리디렉션)
https://example.com/seattle/pagename
에, 당신은 바위! –