Redirect from one domain to another - NOVICE :-)
3 posts
• Page 1 of 1
Redirect from one domain to another - NOVICE :-)
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![Smile :-)](./images/smilies/icon_e_smile.gif)
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
![Smile :-)](./images/smilies/icon_e_smile.gif)
Re: Redirect from one domain to another - NOVICE :-)
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]
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]
Re: Redirect from one domain to another - NOVICE :-)
Hi Anton,
WOW!![Smile :-)](./images/smilies/icon_e_smile.gif)
That works like a charm, I am very impressed and so appreciate your help with this.
Thank you,
Paul
WOW!
![Smile :-)](./images/smilies/icon_e_smile.gif)
That works like a charm, I am very impressed and so appreciate your help with this.
Thank you,
Paul
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests