RewriteRule
2 posts
• Page 1 of 1
RewriteRule
Hi,
I am new to the ISAPI.
I want to redirect an old url to a new URL with 301 redirect.
My Old URL is: https://go.avanade.com/intranet/ark/Doc ... cb11e8a878
New URL is : http://at.dev.com/Documents/Forms/AllItems.aspx
Please tell me how i will create RewriteRule for old URL to new URL.
Note: The after i how to i check RewriteRule is working are not?
I am new to the ISAPI.
I want to redirect an old url to a new URL with 301 redirect.
My Old URL is: https://go.avanade.com/intranet/ark/Doc ... cb11e8a878
New URL is : http://at.dev.com/Documents/Forms/AllItems.aspx
Please tell me how i will create RewriteRule for old URL to new URL.
Note: The after i how to i check RewriteRule is working are not?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: RewriteRule
Hello,
What you need to use is the following:
You make sure that it works by requesting the old URL. After it you'll be redirected to a new URL.
Regards
Andrew
What you need to use is the following:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} on
RewriteCond %{HTTP:Host} ^go\.avanade\.com$ [NC]
RewriteCond %{QUERY_STRING} ^GUID=4cf03a73-6a23-4ad9-a9ad-5fcb11e8a878$ [NC]
RewriteRule ^intranet/ark/DocDetail\.aspx$ http://at.dev.com/Documents/Forms/AllItems.aspx? [NC,R=301,L]
You make sure that it works by requesting the old URL. After it you'll be redirected to a new URL.
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests