2017-04-13 5 views
-1

나는 index.php를 제거하는 데 큰 문제가있었습니다. 일반적으로 아래의 .htaccess는 여러 서버에서 테스트 일반적으로 작동하고있다 : 당신은 루트 폴더에 htaccess로 파일을 추가해야 http://localhost/test/index.php/home/planscodeigniter에서 url에서 index.php를 제거하는 방법

+0

에서의 .htaccess이 파일? 이미이 문제를 다루는 데는 여러 가지 질문이 있습니다. http://stackoverflow.com/questions/6809373/remove-index-php-from-url-codeigniter?rq=1 http://stackoverflow.com/questions/6201409/how-to-remove-index-php-from -codeigniter-url? rq = 1 http://stackoverflow.com/questions/5155333/remove-index-php-from-url-codeigniter-2?rq=1 http://stackoverflow.com/questions/9368543/remove -index-php-codeigniter-urls? rq = 1 – Tom

+0

루트 폴더에서이 [코드]를지나 .htaccess 파일을 만듭니다 (http://stackoverflow.com/questions/43364031/redirection-issues-in-live- 서버/43364089 # 43364089) –

+0

RewriteBase에한다 RewriteEngine/ 한다 RewriteCond % {REQUEST_FILENAME}! -f 한다 RewriteCond % {REQUEST_FILENAME}는! 한다 RewriteRule을 -d. *의 index.php/$ 0 ℃ PT, L]의 – user3294120

답변

0

CodeIgniter의 에 링크 아래의 index.php를 제거하는 방법

.

DirectoryIndex index.php 
RewriteEngine on 

RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA] 

저장 시스템 폴더 아래 htaccess로

관련 문제