2009-10-30 3 views
0

건초들, 스노우 레오파드에서 모든 종류의 mod_rewirte 문제가 있습니다. 누구나 스노우 레오파드와 mod_rewrite에 중점을 둔 기사를 알고 계십니까? 또는 단계별 가이드로 간단한 단계. 내가하고 싶은 것은 URL이 '예쁘게'보일 정도로 codeigniter를 설정하는 것이다. 당신이 사용해야 CodeIgniter documentation스노우 레오파드, mod_rewrite, codeigniter

RewriteEngine on 
RewriteBase /~myusername/ci_app/ 
RewriteRule ^[^/]+/[^/]+$ index.php/$0 [L] 
+0

"모든 문제"? 더 말해주세요. .htaccess 파일이나 아파치 설정을 사용하고 있습니까? (.htaccess 파일을 피할 수 있으면 사용하지 마십시오. 더 어렵고 약간 버그가 있습니다.) – Artelius

+0

Apache config ?? – dotty

답변

1

:

그래서

localhost/~myusername/ci_app/index.php/mycontroller/myaction 

localhost/~myusername/ci_app/mycontroller/myaction 

감사

1

이 규칙을 시도 될 것

RewriteEngine on 
RewriteCond $1 !^(index\.php|images|robots\.txt) 
RewriteRule ^(.*)$ index.php/$1 [L] 
+0

이 .htaccess 파일은 어디에 있습니까? 내 사용자 사이트 폴더 (localhost/~ myuser)에 있습니까? 또는 실제로 serverDocument 폴더 (localhost)? – dotty

+0

@ dotty : 당신이'/ Users/myusername/Sites/ci_app /'디렉토리에 넣고 싶다고 생각했습니다. – Gumbo

+0

이것은 작동합니다 (내가 Options + FollowSymlinks 라인을 추가 한 후에) 그러나 무엇이라도 CSS/style.css 아이디어를로드 할 수 없습니까? – dotty

관련 문제