URL을 다시 작성하려고하는데 index.php를 제거하고 일부 조사를 수행했으며 온라인 설명서도 찾았습니다. 여기 Yii url rewriting removal index.php
내가 지금까지 난 내 main.php의 urlmaneger을 uncomnted 한 일이고 나는'urlManager'=>array(
'urlFormat'=>'path',
'showScripName'=>false,
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
다음하고 난
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
이제 때 내 yiiApplication에 loacted입니다 htaccess로이 나는 그것이 나에게 다음과 같은 오류를주는 응용 프로그램을 시작합니다.
**Property "CUrlManager.showScripName" is not defined.**
어떻게 내가 내 재 작성 엔진이 어떻게도 난 내 PHP 로그 또는 WAMP 서버 로그에 오류가 없다?이 문제를 해결 않습니다.
내 프로젝트의 모든 URL을 다시 작성해야합니까?
showScriptName 대신 showScripName –
의 네 그것은 당신의 도움을 주셔서 감사 고정. – Steve