Need redirect rule to replace old url with new one
2 posts
• Page 1 of 1
Need redirect rule to replace old url with new one
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
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
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Need redirect rule to replace old url with new one
Hello,
As far as I understand, you'd like to have a generic rule for URLs like this:
Regards
Andrew
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests