Recent Topics

1 Dec 30, 2014 21:46    

Hi,

I used b2evolution for two blogs in a multi-domain setup, the site is hosted at 1&1.

maindomain.de is the maindomain which is the default blog in b2evolution and also at 1&1

seconddomain.de is registered as secondary domain at 1&1 and has its own blog in b2evolution with absolute URL www.seconddomain.de

To make not only http://www.seconddomain.de working as URL but also http://domschnecken.de I added the following two lines in .htaccess:

RewriteCond %{HTTP_HOST} ^(seconddomain\.de)
RewriteRule (.*) http://www.%1/$1 [R=301,L]

Now I wanted to add a "sub-blog" in this blog and have it accessible via a subdomain.
I defined sub.seconddomain.de at 1&1 as subdomain pointing to the same index as the two links above, deleted the two lines in .htaccess and defined a blog in b2evolution with absolute URL sub.seconddomain.de

Status now for opening an URL in a browser is:
maindomain.de and www.maindomain.de are working correctly
www.seconddomain.de is working correctly
seconddomain.de and sub.seconddomain.de are now redirected the maindoman.de blog as it is the default

Any other hostname xxx.seconddoamin.de results in a server not found error.

Any clues, where I misconfigured my setup, thanks, krimskrams

2 Dec 31, 2014 11:39

Hi,
it seems I was either too nervous, 1&1 takes a long time to propagate changes or some cache in either the web server or the web browser kicked ... however today morning at least the subdomain sub.seconddomain.de is now working and displaying the correct blog.

So, the question remains, how can I ensure that not only

http://www.seconddomain.de

but also

http://seconddomain.de

is displaying the same blog? Currently the "long version" with www. in front is redirecting to the correct blog, the short form without www. is redirected to the default blog ....
krimskrams


Form is loading...