2012-05-07 2 views
0

웹 사이트를 만들고 있는데 왜 mod_rewrite이 작동하지 않는지 알 수 없습니다.URL 다시 쓰기가 올바르게 작동하지 않습니다.

다음은 본 URL입니다 : http://www.treetle.com/profile/index/show/rameshmantha
하고 http://www.treetle.com/profile/rameshmantharameshmantha가 (동적으로 제공) 프로파일의 이름입니다

에 다시 여기 내 htaccess로 파일입니다되어야합니다.

RewriteEngine on 

Options +FollowSymLinks 

RewriteCond $1 !^(index\.php|resources|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule ^(.*)$ index.php/$1 

RewriteRule ^/profile/([a-z]+)?$ /profile/index/show/$1[L,QSA] 

답변

1

RewriteRule ^(.*)$ index.php/$1은 모두 일치합니다. 주문 교환 방법 :

RewriteRule ^/profile/([a-z]+)?$ /profile/index/show/$1[L,QSA] 
RewriteRule ^(.*)$ index.php/$1 
관련 문제