问题
Possible Duplicate:
Zend - How to install on WAMP
I have a website created in Zend Framework. But when iam trying to load in wamp server it is not working correctly.
If there is any set up steps in wamp for zend?
How can setup zend frame work website in wamp server?
In this site there have a login page , when i login correctly it will displays a white page only nothing will be loaded.
What is the reason?the login page is displayed correctly but after login the site is not loaded
回答1:
Make sure that the rewrite_module is enabled Go to Wamp Server -> Apache -> Apache Modules
Deploy your project to a folder in your document root folder, default www for example projectname
You need to change the .htaccess in the public folder of your Zend Application as follows
RewriteEngine On
# the base for rewriting the files, this is relative to the document root being used # for local environment use the name of the project folder
RewriteBase /projectname/public/
# Rewrite conditions for the Front controller
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Access your project as http://localhost/projectname/public
来源:https://stackoverflow.com/questions/9616903/setting-up-zend-in-wamp-server