Ketan Patel

URL rewriting is not properly configured on your server.


URL rewriting is not properly configured on your server.




You are reading this post that means you are facing the error of “URL rewriting".






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 wamp server,you can access the httpd.conf file as bellow.






If you are using 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 as “#LoadModule rewrite_module modules/mod_rewrite.so” .See the image bellow.






Just remove the “#” 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 as 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/(cakefolder)/ 



You can continue CakePHP development, If you are getting green screen as above . Good luck with CakePHP Framework.


ketan patel

About Ketan Patel -

I have developed a wide range of websites using CorePHP, Opencart, CakePHP and CodeIgniter including sites for startup companies and small businesses. Apart from my blogging life, I like to read Novels, Listening music and Net surfing.

Subscribe to this Blog via Email :