-1
Apache 서버의 Yii에서 구현 된 프로젝트입니다. 정상적으로 작동하고 있습니다. 생산 및 로컬 서버에서 url
의 index.php
을 숨기고 싶습니다. Apache에서 실행 중입니다.yii 프레임 워크에서 URL에서 index.php를 숨기는 방법
아래 설정으로 시도했습니다. 'show Script Name'=>false,
그러나 작동하지 않습니다.
Apache 서버의 Yii에서 구현 된 프로젝트입니다. 정상적으로 작동하고 있습니다. 생산 및 로컬 서버에서 url
의 index.php
을 숨기고 싶습니다. Apache에서 실행 중입니다.yii 프레임 워크에서 URL에서 index.php를 숨기는 방법
아래 설정으로 시도했습니다. 'show Script Name'=>false,
그러나 작동하지 않습니다.
속성 "showScriptName"은 공백이 없어야합니다.
array(
......
'components'=>array(
......
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => false
),
),
);
이 UrlManager 가이드 읽을 아파치 에 대한 mod_rewrite를을 활성화하고 내가 당신을 추천
도RewriteEngine on
# 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
으로 웹 루트 디렉토리에 htaccess로 파일을 만들 잊지 마세요 :의 http://www.yiiframework.com/doc/guide/1.1/en/topics.url
가능한 중복 http://stackoverflow.com/questions/9633649/how-to-remove-index-php-in-yii-framework – nu6A