URL Rewriting Is Not Properly Configured On Your Server
Are you seeing "URL rewriting is not properly configured on your server"? Our tutorial provides a solution to this common issue.
You are reading this post which means you are facing the error of “URL rewriting" when Installing CakePHP on Localhost Wamp. Without solving this error, you cant go ahead.
To solve this issue you need to make some changes in the httpd.conf
file of the apache server. If you are using a wamp server, you can access the httpd.conf
file as bellow:
If you are using the XAMPP server then, you can found httpd.conf file in the xampp/apache/conf/httpd.conf
. For any other apache based server config file can be found in apache/conf/httpd.conf
.
Once you open the config file, you can find a line like #LoadModule rewrite_module modules/mod_rewrite.so
. See the image below:
Just remove #
in that line in the httpd.conf file
. then save & restart the Apache Server. The problem must be solved. If not then make sure that the code written in apache/conf/extra/httpd-vhosts.conf
file is like the code given below:
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "c:/wamp/www/"
ServerName localhost
</VirtualHost>
<Directory "c:/wamp/www/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
And in apache/conf/httpd.conf
file it should be like as below:
<Directory />
Options FollowSymLinks
AllowOverride All
#Order deny,allow
#Deny from all
</Directory>
Now after making all the changes, Restart your Apache server. Open your browser and type http://localhost/(cake-folder)/
You can continue CakePHP development If you are getting a green screen as above. Good luck with CakePHP Framework.