RewriteRule

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 24
Joined: 15 Feb 2013, 04:06

RewriteRule

25 Feb 2013, 07:41

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?

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

Re: RewriteRule

25 Feb 2013, 12:31

Hello,

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

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 6 guests