When I enter my domain name with ‘www’ for example http://domain.nl everything works fine but when I use the same domain with ‘www’ before it, it redirects to /app/webroot which gives errors. What could the problem be?
I use the default cakephp .htaccess files
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
You can Check first your rewrite mode is on or not in
apache\conf\httpd.conffilecheck below code in
httpd.conffilehash remove in this line and restart apache server
After then you can set
Or
in htacess
I think you can try this