Wamp Url Rewrite Error: The Requested Url Was Not Found In This Server

I received this error after setting up my CakePHP with Url Rewrite in Wamp Server 2.5, which includes Apache 2.4.9:

“the requested url /wamp/cake/app/webroot/index.php was not found on this server.”

After reviewing my .htaccess configuration I found the error in a missing RewriteBase directive.

If your Cake installation folder were /yourbaseaddress/cake/, your RewriteBase directives should look like


<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /yourbaseaddress/cake/
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]



<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /yourbaseaddress/cake/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Leave a Reply