2013-02-26 3 views
0

저는 Lubuntu에 Zend Server CE를 설치했습니다. Windows의 Zend Server CE와 내 호스팅에서도 모든 것이 잘 작동합니다.잘못된 구문 분석 url - index/index 대신 index.htm/index

공공/htaccess로 내가으로 이동하기 위해 노력하고있어

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} -s [OR] 
RewriteCond %{REQUEST_FILENAME} -l [OR] 
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^.*$ - [NC,L] 
RewriteRule ^.*$ index.php [NC,L] 

:

The requested URL /project/public/index.htm/index/menu/Gallery/type/2 was not found on this server.

왜 ID : 그것은 나에게 오류를 보여줍니다

/project/public/index/index/menu/Gallery/type/2

나를 .htm 색인에 추가합니까?

예 :/project/public/admin 또는 project/public/index/edit/id/16은 정상적으로 작동합니다.

추신. 인덱스 - 컨트롤러 인덱스 - 액션 메뉴 - 액션

당신은 내게 즉, 인덱스/메뉴 대신 인덱스의 창에서 작동하지 않는 이유를 모르겠어요 렸기 때문에, 젠드의 URL 포맷하기에 대한 빠른 링크를 제공 할 수/index/menu? 당신이 젠드 MVC 응용 프로그램을 사용하는 경우

답변

0

, '당신이 다음 라우팅 기본 모듈을 사용하는 경우

/module/controller/action/param1name/param1value

해야이

http://framework.zend.com/manual/1.12/en/zend.controller.router.html

에 대해 살펴 경우, 또는 당신은 돈 모듈을 그냥 사용하십시오

/controller/action/param1name/param1value

모든 매개 변수 p가없는 경우 인덱스는 기본 컨트롤러 및 작업 이름입니다.