Rewrite condition for blog
2 posts
• Page 1 of 1
Rewrite condition for blog
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Rewrite condition for blog
Hello,
Try using the following:
Regards
Andrew
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 30 guests