I have installed wpmu at the root http://www.mydomain.com directory. Then, I installed CMS to /homw/www/cms directory. I can access it using http://www.mydomain.com/cms. Both are running fine.
I want the default webpage http://www.mydomain.com to point to the CMS site at http://www.mydomain.com/cms instead of the default wpmu site. I want the user blogs to work the normal way user1blog.mysite.com.
I tried the following .htaccess file. It didn't work.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC]
RewriteCond %{HTTP_HOST} ^mydomain.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/cms/$1 [R,L]
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
How do I do it using the .htaccess file. I spent a lot of time trying this. Nothing worked. Could please help me with this rewrite rule. Any help is appreciated.
Thanks,
TW.