You need to configure a virtual-host in apache to make zend work properly with mode_rewrite
in your wamp\bin\apache\Apache(version number)\conf\httpd.conf remove the # symbol in front of the line Include conf/extra/httpd-vhosts.conf (just under the line # Virtual hosts near the end of the config file)
Then in the file wamp\bin\apache\Apache(version number)\conf\extra\httpd-vhosts.conf there should be something like that :
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
nameVirtualHost localhost
<VirtualHost 127.0.0.1>
ServerAdmin webmaster@localhost
DocumentRoot "c:/wamp/www"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
after this, add your new virtual host, something like that :
<VirtualHost 127.0.0.1>
ServerAdmin webmaster@localhost
DocumentRoot "C:\wamp\www\zendProject\public\"
ServerName zendProject.local
ErrorLog "logs/zendProject.local-error.log"
CustomLog "logs/zendProject.local-access.log" common
<directory "C:\wamp\www\zendProject\public\">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</directory>
</VirtualHost>
make sure to replace zendProject by your actual zend project name. I personnaly add the .local as the domain extension, this way I wont override a real domain on the Web.
And finally to make it work you need to edit your host file, which should be located there : C:\Windows\System32\drivers\etc\hosts
you just have to add at the end of the file the following line (open it in notepad) :
127.0.0.1 zendProject.local
make sure to use the same name that you've setted in your virtual host configs.
Restart your Wamp server and you are good to go