Redirect from one domain to another - NOVICE :-)

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 30 Oct 2013, 20:38

Redirect from one domain to another - NOVICE :-)

30 Oct 2013, 20:49

Hi everyone, I am very new to URL rewriting and need to create a couple of rules that will redirect traffic from my old domain to the new one I have the following examples

http://catalog.davis.org to http://catalog.server.org

https://catalog.davis.org to https://catalog.server.org

Can you tell me how best to do this in ISAPI_Rewrite 3.0 on IIS 7 Windows Server Please?

Thank you,

Paul

Most likely very simple if you have done this before, but this is my first attempt at this type of thing :-)

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Redirect from one domain to another - NOVICE :-)

31 Oct 2013, 08:37

Hello, Paul

The rules should be like this:

RewriteBase /
RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP_HOST} ^catalog\.davis\.org$ [NC]
RewriteRule (.*) http(?%1s)://catalog.server.org/$1 [R=301,L]

User avatar
Posts: 2
Joined: 30 Oct 2013, 20:38

Re: Redirect from one domain to another - NOVICE :-)

01 Nov 2013, 14:46

Hi Anton,

WOW! :-)

That works like a charm, I am very impressed and so appreciate your help with this.

Thank you,

Paul

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 15 guests