Rewrite condition for blog

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 16 Apr 2012, 06:53

Rewrite condition for blog

16 Apr 2012, 06:55

Hi,

I need a rewrite condition from blog.mydomain.it to http://www.mydomain.com/blog
So to another domain cartel.

Can someone please help me?
i have the while card so I think I should use a rewrite condition before.

Thanks

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Rewrite condition for blog

16 Apr 2012, 19:15

Hello,

Try using the following:

Code: Select all
RewriteCond %{HTTP:Host} ^blog\.(mydomain\.com)$ [NC]
RewriteRule .? http://www.%1/blog [NC,R=301,L]


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 9 guests