Need redirect rule to replace old url with new one

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 27 Nov 2013, 08:44

Need redirect rule to replace old url with new one

27 Nov 2013, 08:51

Hi

I am new to this. I need to redirect old URL to the new one.
old URL value is https://at.avanade.com/media
New URL value is https://media.avanade.com

can anybody tell me how to write rule for this????

Thanks in advance

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

Re: Need redirect rule to replace old url with new one

28 Nov 2013, 13:15

Hello,

As far as I understand, you'd like to have a generic rule for URLs like this:

Code: Select all
RewriteEngine on
RewrietBase /

RewriteCond %{HTTP:Host} ^at\.avanade\.com$ [NC]
RewriteRule ^([^/]+)$ http://$1.avanade.com/ [NC,R=301,L]


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 10 guests