Name: seobro 2012-10-30 21:01
hey guys I'm in trouble seriously. I'm running wordpress site and I'd like to have multisite subdomains not subcategories f.e.
(I've created subdirectory in ftp.)
oranges.domain.com
not domain.com/oranges ..actually I can access subdomain but only in this format: oranges.domain.com/domains/domain.com
And also if my wordpress has root in subdirectory like domain.com/home how can I redirect domain.com to go to domain.com/home because not everybody will know that my domain is accessible only with subcategory.
Here are the codes I got in config and htaccess-
I'd be really glad if you guys can help me.
# BEGIN WordPress
RewriteEngine On
RewriteBase /domains/domainname.com/home/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
# END WordPress
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
$base = '/domains/domainname.com/';
define('DOMAIN_CURRENT_SITE', 'domainname.com');
define('PATH_CURRENT_SITE', '/domains/domainname.com/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
(I've created subdirectory in ftp.)
oranges.domain.com
not domain.com/oranges ..actually I can access subdomain but only in this format: oranges.domain.com/domains/domain.com
And also if my wordpress has root in subdirectory like domain.com/home how can I redirect domain.com to go to domain.com/home because not everybody will know that my domain is accessible only with subcategory.
Here are the codes I got in config and htaccess-
I'd be really glad if you guys can help me.
# BEGIN WordPress
RewriteEngine On
RewriteBase /domains/domainname.com/home/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
# END WordPress
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
$base = '/domains/domainname.com/';
define('DOMAIN_CURRENT_SITE', 'domainname.com');
define('PATH_CURRENT_SITE', '/domains/domainname.com/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);