1 krimskrams Dec 18, 2010 22:24
3 krimskrams Dec 19, 2010 21:39
Hi,
unfortunately I cannot change the web server settings, it is only accessible through a web frontend of my provider 1&1.
However I think, I would need to define an additonal baseurl for the domschnecken.de domain, so that b2evolution accepts both entries www.domschnecken.de and domschnecken.de for the same blog.
I re-defined the absolute URL path for domschnecken.de from http://www.domschnecken.de to http://domschnecken.de ... now the behaviour is exactly the other way round.
Is there any chance to define two baseurl's for the same blog????
krimskrams
4 krimskrams Dec 28, 2010 16:47
Hi,
eventually I found out I can define CNAME entries at my provider:
I defined an entry for www.domschnecken.de as CNAME for the domain domschnecken.de, nsllokup now results in:
> domschnecken.de
Non-authoritative answer:
Name: domschnecken.de
Address: 212.227.193.158
> www.domschnecken.de
Server: 9.64.163.21
Address: 9.64.163.21#53
Non-authoritative answer:
www.domschnecken.de canonical name = domschnecken.de.
Name: domschnecken.de
Address: 212.227.193.158
I changed the baseurl of the blog to http://domschnecken.de hoping that the new CNAME entry would make www.domschnecken.de being routed to the correct blog.
Unfortunately ... no change, http://domschnecken.de now delivers the correct blog while http://www.domschnecken.de has the problem of being routed to the default blog demmer.eu.
Any ideas? Would an upgrade to v4.0.3 help???
Bye,
krimskrams
5 yabba Dec 28, 2010 17:34
RewriteCond %{HTTP_HOST} !^www\.(.*)
RewriteRule (.*) http://www.%1/$1 [R=301,L]
ish
Note : that'll redirect all subdomains to www as well so you may wish to target it better
RewriteCond %{HTTP_HOST} ^(yourdomain\.tld)
RewriteRule (.*) http://www.%1/$1 [R=301,L]
Edit
Here's an old post that may help [url=http://b2evo-archived.waffleson.co.uk/2007/10/multi-domains-on-a-single-evo-install/]Archived : multi-domains on a single evo install[/url]
¥
6 krimskrams Jan 05, 2011 16:18
Hi,
I used the second version of the Rewrite statement and now verything works!!!!
Great and thanks a lot,
krimskrams
7 yabba Jan 05, 2011 17:20
No worries ;)
¥
Make sure you have a DNS entry like A or CNAME for www subdomain on domschnecken.de
You can't control it .htaccess file