PHP 용 CodeIgniter 프레임 워크를 사용하고 있습니다. 그것은 내가 입력 한 URL에 index.php
이 있어야합니다. 이걸 어떻게 막을 수 있습니까? 아무도 나에게 간단한 .htaccess
파일을 암시 적으로 index.php
에 매핑하므로 사용자가 매번 입력하지 않아도됩니까?myapp/index.php/controller/view를 myapp/controller/view에 매핑하는 방법은 무엇입니까?
Options +FollowSymLinks
IndexIgnore */*
<ifmodule mod_rewrite.c>
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
</ifmodule>
경우
는
위자드, '$ 1'과'[L]'이 여기서 무엇을 나타내는 지 알려주실 수 있습니까? 'RewriteRule^(. *) $ /app/index.php/$1 [L]' – TCM