Recent Topics

1 Jul 21, 2010 14:35    

My b2evolution Version: Not Entered

Hi,
i posted this in the german forum to, but i don't get a response. So this is my second try...
I have b2evolution successfully installed. All sample blogs are up and running.
In the next step i create a new blog based on blogA. I can use this new blog and post some test entry's. Now i want use my blogs with subdomains like this: test.servername.dh instead of servername.dh/test.php.
On the first look it's works, but if i login on my blog, the will be redirect to the entry page. I can't post anything. Also the admin login don't works. I read the manual for MultipleDomains and put the corresponding lines in my b2evolution vhosts and .htaccess.
Here my vhosts:

<VirtualHost *>
ServerName servername.dh
ServerAlias test.servername.dh
UseCanonicalName Off
DocumentRoot /srv/www/htdocs/
DirectoryIndex index.html index_multi.php index.php blogs/blog5.php
</VirtualHost>

And here my .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On

# This line may be needed:
RewriteBase /

# Redirect anything that's not an existing directory or file to index.php:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

My Document Root is : /srv/www/htdocs ; my blog Document Root /srv/www/htdocs.

Thanks for your help! :)
Toeffel

P.S. Sorry for my worst english, i hope you can help me all the same.

2 Jul 21, 2010 17:55

Try this

ServerAlias *.servername.dh

EDIT: found your previous post, and it seems like this didn't work for you.
You don't really need .htaccess file to make wildcard subdomains work, rename it while testing subdomains.

BTW do you have cPanel? You can easily add wildcard domains in cPanel.

3 Jul 21, 2010 18:23

No, I don't have cPanel.
I renamed my .htaccess, now i can access th URL test.servername.dh . I try a login, no error displayed. But the site were redirect to the entry site. There is no Toolbar here and i see the LogIn Button again!

4 Jul 21, 2010 20:47

Can you also access virtual subdomains like qwerty.servername.dh ?

Open config/_advanced.php and add these to the end

$cookie_path = '/';
$cookie_domain = '.servername.dh';


Form is loading...