iis - What's the best way to redirect an entire classic ASP website to a new domain? -
i need redirect entire classic asp based website new domain whilst still maintaining search engine ranking of old site.
i think 301 redirect required not sure best way of doing don't think .htaccess works on iis windows based server.
i prefer not have change existing asp files individually there quite few.
any suggestions great.
thanks in advance.
i not know if there better method, using iis permanent redirect:
- go "home directory" tab of site properties
- select option "a redirection url"
- enter "http://yournewurl$s$q" in "redirect to" text box
- check both options "the exact url entered above", , "a permanent redirection resource"
so requests http://youroldurl/path/page?querystring
permanently redirected http://yournewurl/path/page?querystring
more details can found here.
ps: above steps ii6, iis 7 might differ, can't recall.
update:
using 404 direct following in default page , 404 page:
<%@ language=vbscript %> <% response.status="301 moved permanently" response.addheader "location","http://yournewurl/" %>
Comments
Post a Comment