Hosting WordPress website inside another website

Topics: User Forum
May 4, 2010 at 1:34 PM


I am trying to host a new WordPress site/blog in a subfolder of another existing website and point a new domain to that subfolder without the user to know.
for example:
Exisiting website:
New Domain:
Blog (WordPress) subfolder: ./Wordpress

What I am trying to accomplish is:

1. if someone enters: "" it wil REWRITE to ""  (which means the user keeps seeing "") - This I think I got right  (Rule #4 in the example below)

2. If someone enters "" it will REDIRECT/REWRITE (i am not sure here) to "" (which means the user will see "" ) - This I got only half right. First it seems to work properly but I cannot login to Wordpress. My guess is that it does not work well with sub-sub folders or something like that. (Rule #3 in the example below)

3. Remove the "www" from and - This works well.  (Rules #1,#2 in the example below)

Here is my IIRF (v2.x) installed on Windows 2003 virtual server:

RewriteLog D:\xxx\iirfLog.out
RewriteLogLevel 3
MaxMatchCount 10
StatusUrl /iirfStatus
RewriteEngine ON

RewriteCond %{HTTP_HOST} ^(www\.MyDomain\.com).*$ [I]
RedirectRule ^/(.*)$$1 [I,R=301]

RewriteCond %{HTTP_HOST} ^(www\.MyBlog\.com).*$ [I]
RedirectRule ^/(.*)$$1 [I,R=301]

RewriteCond  %{HTTP_HOST}  ^MyDomain\.com$  [I]  
RedirectRule ^/WordPress/(.*)$$1 [I,R=301]            

RewriteCond  %{HTTP_HOST}  ^MyBlog\.com$      [I]
RewriteRule  ^/(.*)$       /WordPress/$1                [L]


Please advice, especially regarding the 3rd rule..