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:

  1. go "home directory" tab of site properties
  2. select option "a redirection url"
  3. enter "http://yournewurl$s$q" in "redirect to" text box
  4. 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

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -