CakePHP at domain*go: ModRewrite problem
Pierre Krohmer | 5. Januar 2013Recently I moved my cakePHP applications to another hoster (domaingo). After I did the set up of all needed stuff like databases e.g. I always got this error when I opened the site in my browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
It looked like something was wrong with mod_rewrite which cake is using. I changed nothing on the application itself and it worked perfectly at my old hoster. After a while of investigations I found out, that you can solve the problem by adding the following line in all of your .htaccess files:
RewriteBase /
You should add it after <IfModule mod_rewrite.c> so it looks like this:
<IfModule mod_rewrite.c>
RewriteBase /
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
After that my site was working again. Hopefully my experience help somebody to safe some time.









