1 hypocrite Jan 01, 2009 11:07
3 hypocrite Jan 02, 2009 08:19
Both should be fine.
I think I have found the reason for the behaviour. When I type my blogs address in full (eg. with www. in front) it works correctly. But if I make a shortcut and leave the www. out, it will give the error message.
For example if I will come to http://www.domain.com by just typing "domain.com", it will give the error message because the redirect_url has the shortened domain address.
Shouldn't there be some kind of a workaround for this because I think other users can also make the same "mistake"?
4 yabba Jan 03, 2009 11:16
You should be redirecting non-www to www to prevent duplicate content issues
htaccess :
RewriteEngine On
# redirect www to non-www
# check if url starts with www.
##RewriteCond %{HTTP_HOST} www\.(.*)
# strip the www. off and send browser on it's way to new url
##RewriteRule (.*) http://%1/$1 [R=301,L]
# redirect non-www to www
# check if url doesn't start with www.
RewriteCond %{HTTP_HOST} !^www\.
# add www. to the url and send the browser on it's way to new url
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
¥
Edit the $baseurl in conf/_basic_config.php
If it doesn't work then change the $instance_name in conf/_advanced.php, line 161