Sunday, 27 November 2011

CakePHP url rewriting problem?

If you are facing url rewriting problem in cakephp even though you have enabled rewrite module.....Here is the solution....

- Just go to the httpd.conf file.

- Find the following text groups

  <Directory />
       Options FollowSymLinks
       AllowOverride None
       Order deny,allow
       Deny from all


  # AllowOverride controls what directives may be placed in .htaccess files.
  # It can be "All", "None", or any combination of the keywords:
 # Options FileInfo AuthConfig Limit
 AllowOverride None.

- Replace 'AllowOverride None' with 'AllowOverride All' on both places.

- Save file and Restart Apache

Refresh Page and the problem is resolved. :)

No comments:

Post a Comment

Thanks for your valuable comments.