Hi all,
I have a problem with my virtualhost configuration.
I run wordpress as network site so I put this into my httpd configuration:
and added A record.
And WP is working fine, I can create site as subdomains urls.
But I want to create separate site in subdomain like forum.domain.com in separate DocumentRoot. So I added this code:
And created new subdomain in DA.
Apache created "forum" folder but wordpress get this subdomain as it's own and I don't have access to "forum" folder.
The wordpress htaccess looks like this:
How it should be configured correctly?
I have a problem with my virtualhost configuration.
I run wordpress as network site so I put this into my httpd configuration:
Code:
ServerAlias *.|DOMAIN|
And WP is working fine, I can create site as subdomains urls.
But I want to create separate site in subdomain like forum.domain.com in separate DocumentRoot. So I added this code:
Code:
|*if SUB="forum"|
|?DOCROOT=/home/admin/domains|
|*endif|
And created new subdomain in DA.
Apache created "forum" folder but wordpress get this subdomain as it's own and I don't have access to "forum" folder.
The wordpress htaccess looks like this:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
How it should be configured correctly?