What is the best way to redirect the entire classic ASP website to a new domain name?

I need to redirect the entire classic asp-based website to a new domain name while still maintaining the search engine ranking of the old website.

I Think 301 redirect is necessary, but not sure what is the best way, because I don’t think .htaccess is suitable for IIS Windows based server.

I don’t want to change the existing ASP file separately because There are many.

Any suggestions would be great.

Thanks in advance.

I don’t know if there is a better way, but what I did is to use IIS for permanent redirection:

>Go to the “Home Directory” tab of the site properties
>Select the option “Redirect to URL”
>Enter “http://yournewurl $S $Q” in the “Redirect to” text box
>Check the “Exact URL entered above” option And the “permanent redirection of this resource” option

So to http://youroldurl/path/page? All requests for querystring will be permanently redirected to http://yournewurl/path/page? querystring

More details can be found here.

PS: The above are the steps of II6, IIS 7 may be different, I really don’t remember.

< p>Update:

Use 404 in the default page and 404 page to directly use the following content:

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://yournewurl/"
%>

< /p>

I need to redirect the entire classic asp-based website to a new domain name while still maintaining the search engine ranking of the old website.

I think the 301 redirect is Required, but not sure what is the best way, because I don’t think .htaccess is suitable for IIS Windows based servers.

I don’t want to change the existing ASP files individually because there are many.

p>

Any suggestions would be great.

Thanks in advance.

I don’t know if there is a better way, but What I did was to use IIS for permanent redirection:

>Go to the “Home Directory” tab of the site properties
>Select the option “Redirect to URL”
>in In the “Redirect to” text box, enter “http://yournewurl $S $Q”
>Check the “Exact URL entered above” option and the “Permanent redirection of this resource” option

So to http://youroldurl/path/page? All requests for querystring will be permanently redirected to http://yournewurl/path/page? querystring

More details can be found here.

PS: The above are the steps of II6, IIS 7 may be different, I really don’t remember.

< p>Update:

Use 404 in the default page and 404 page to directly use the following content:

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://yournewurl/"
%>

< p>

Leave a Comment

Your email address will not be published.