http://www.example.com/
http://www.example.com/sample
という風にモジュールで分けたいので以下のようにディレクトリを作成しました
/application/default/
/application/sample/
(各モジュール内にcontrollers,models,viewsディレクトリも入ってます)
(各モジュール内にcontrollersにはIndexController.php、viewsにはindex/index.phtmlとerror/error.phtmlが入ってます)

public_html/index.phpには以下のように書きました
<?php
include 'Zend/Controller/Front.php';
$front = Zend_Controller_Front::getInstance();
$front->addModuleDirectory('../application');
$front->dispatch();

これで
http://www.example.com/http://www.example.com/defaultで/application/default/の内容が表示
http://www.example.com/sampleだとエラーページが表示されます。(エラーページは/application/default/views/error/error.phtmlのものです)

モジュール別に分けて制作したいのですがどこを修正したらよろしいでしょうか?