Trying to make a forum on subdomain site in MSM.
I do as it is written here - http://expressionengine.com/wiki/How_can_I_run_the_Discussion_Forums_from_a_subdomain_such_as_forums.example.com/
On the main site I think it would work, but there I do not need.
I need the forums to other sites connected via MSM, ie for each site I make my section of the forum.
What I have:
In the settings section states:
Forum URL: forum.site.ru
Keyword to go to the forum: forum
The directory Forum 2 files index.php and .htaccess.
.htaccess:
AddDefaultCharset utf-8
RewriteEngine On
RewriteCond %{HTTP_HOST} forums.kasimov62.ru
RewriteCond %{REQUEST_URI} !index.php
RewriteRule ^(.*)$ index.php/forums/$1
index.php:
$system_path = '../ee_system';
$assign_to_config['site_name'] = 'site2';
//$assign_to_config['site_url'] = 'http://forum.site2.ru'Ie in the settings of the site parameter $assign_to_config [‘site_name’] = ‘site2’; included, or site will not work.
If this option is enabled on the forum at http://forum.site2.ru displays the site itself, not the forum.
If you turn off the option says “error connecting to the database.”
What can you think of?