View Single Post
  #1 (permalink)  
Old 05-16-2008, 03:20 PM
vigilnt vigilnt is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default Trouble setting Zend Framework on WAMP!

Hi everyone.

I'm having some problems trying to set up Zend Framework on my pc. I'm currently on Windows using WAMP.

I've got the mod_rewrite module loaded on httpd.conf:

Code:
LoadModule rewrite_module modules/mod_rewrite.so
I'm using the default file structure, with an ALIAS on APACHE so that when I enter the URL http://localhost/site/ I acess the public directory containing the bootstrap index.php.

The problem is that when I've got the .htaccess file like this:

Code:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
It throws bad request when I go to http://localhost/site/ and I can only see my page if i enter index.php after that, and this shouldn't be happening with the rewriting of the URLs.
If I try to access another controller I still have to enter index.php in the url like this:

http://localhost/site/index.php/controller

When I change the .htaccess file to:
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
The indexcontroller works as it should when I go to http://localhost/site/, but if I try to go to other controllers it only works if I enter http://localhost/site/index.php/controller on the URL...

I hope someone can help me.

Thanks
Reply With Quote