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.
Try this
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.