질문Q #3348
https에서 index.php 없애는 방법
마카바2015-10-28 17:48:51
index.php를 없애고 싶습니다
게시글을 보고 따라했더니
http에서는 잘 작동했는데 https에서는 이렇게 하면 될 것 같았는데 안되네요
어떤게 잘못된건지 봐주실 수 있나요?
컨트롤러에서 인식을 못하는 것 같기도 합니다
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ https://%{HTTP_HOST}/index.php/$1 [L]
</IfModule>
이렇게 적용하고
example.com으로 접속하면
이렇게 뜹니다
https://example.com/index.php/index.html
RewriteEngine On RewriteCond $1 !^(index\.php) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]