Forum Moderators: phranque

Message Too Old, No Replies

301 redirect from Apache to IIS - which way?

         

Carpy

10:01 am on Dec 8, 2005 (gmt 0)

10+ Year Member



I have 3 different URL hosted on an Apache Server that currently redirect using a 302 to a domain on an IIS server.

Is the correct way to redirect these using a 301:

within the apache server, for each domain use a htaccess file

RewriteCond %{HTTP_HOST} ^(www\.)?apache-url\.com [NC]
RewriteRule ^(.*) [iis-url.com...] [R=301,L]

Or does the redirect have to be on the IIS server?

thanks

jdMorgan

4:24 pm on Dec 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From your description, the code you posted should work to redirect the 'old' domains on the Apache server to the 'new' domains on the IIS server. The redirects go on the 'old' server that hosts the domains you don't want to use any more.

Jim