1
<routes>
<www type="Zend_Controller_Router_Route_Hostname">
<route>www.domain.com</route>
<chains>
<index type="Zend_Controller_Router_Route">
<route></route>
<defaults module="default" controller="index" action="index" />
</index>
<community>
<route>community</route>
<defaults module="community" />
<chains>
<index type="Zend_Controller_Router_Route">
<route>:action/*</route>
<defaults controller="index" action="index" />
</index>
<member type="Zend_Controller_Router_Route_Regex">
<route>member/profile-(\d+)-(.+)</route>
<reverse>member/profile-%d-%s</reverse>
<map>
<id>1</id>
<nom>2</nom>
</map>
<defaults action="viewmember" />
</member>
</chains>
</community>
</chains>
</www>
위에서 볼 수 있듯이 : 홈페이지에서 색인 컨트롤러에 대한 기본 동작과 작업을 다루기 위해 : action/* in 경로를 사용합니다.기본 경로가 특정 경로와 일치합니다.
domain.com/community/random_action => 잘 작동합니다.
domain.com/community/가 작동하지 않습니다. 전체 홈페이지가 표시됩니다. 확인했는데 기본 경로가 일치합니다.
나는 길 "WWW-사회 지표 '에) (조립 시도하고 잘 www.domain.com/community을 제공 내가 문제 :(