littlevisuals Posted August 14, 2009 Share Posted August 14, 2009 Hi everyone, I was wondering if anyone could be kind enough to help me out with this problem please. Basically im using the zend framework and the project is located in my sites folder. (Mac OS X) I have apache and set up a virtual server for http://mysite which directs to the project. When I type http://mysite it directs to the public/index/ folder. I have other pages added, page1.phtml + page2.phtml with the IndexController looking like this <?php class IndexController extends Zend_Controller_Action { public function indexAction() { } public function page1Action() { } public function page2Action() { } } ?> I know everything goes through index.php and the page are accessed by typing http://mysite/index/page1 , but when I type http://mysite/page1 I get a 404 error outside of my app?! If I type some random url after the index e.g http://mysite.com/index/ejkhfjkewhjk I get an error inside my application ( im using layout.phtml as well ) So my host file has been set up with a virtual server pointing to the directory of my app, apache rewrite on in my httpd.conf and a .htaccess file with RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css|pdf|mov|mp3)$ index.php What am I doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/170311-routing-issues-using-zend/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.