« Previous Next »

Answered Thread: Default redirect used in IIS 6.0

Last post 07-13-2009 5:17 AM by Paul Lynch. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 07-10-2009, 7:11 AM

    Default redirect used in IIS 6.0

    Hi,

    if I am setiing the default page as default.html for my website in IIS 6.0, what redirect type will be used by iis to redirect to the default.html. whether its 301, 302 or somethingelse?

  • 07-10-2009, 8:01 AM In reply to

    Re: Default redirect used in IIS 6.0

    Hi,

    It will be a 302 by default unless you select the option 'A permanent redirection for this resource' in which case it will be a 301

    HTTP 3xx -- Redirection Codes (IIS 6.0)

    Regards,

     

    Paul Lynch | www.iisadmin.co.uk
  • 07-10-2009, 9:08 AM In reply to

    Re: Default redirect used in IIS 6.0

    Hi Paul

    thanks for the info.

    I want to set the website redirect url in IIS...

    but it should be the same website's inner page.

    suppose I have a website with name as www.testWeb.com and it contains default.html page.

    in redirection URL i need to set the page as

    http://www.testweb.com/default.html

    why i need this means,

    to keep the old search engine rankings.

    I can set the default.html as start page in document tab. But it will use 302 redirect. to keep the search enging rankings I need to use 301 redirection.

    Any possiblites?

  • 07-10-2009, 9:43 AM In reply to

    Answered Re: Default redirect used in IIS 6.0

    Hi,

    Yes, if you absolutely have to send back a 301 you can create an empty text file named root.asp, set that file as the default document for your site in IIS and then configure a permanent re-direct on that file in IIS so that it points to http://testweb.com/default.html

    If you do this, then any requests for http://www.testweb.com will be automatically and permanently re-directed to http://testweb.com/default.html and the client will receive a 301 status code for the initial request.

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 07-11-2009, 4:33 AM In reply to

    Re: Default redirect used in IIS 6.0

    Hi,

    Thanks.

    how to set the default redirect to 301 for IIS?

    can i change it?

  • 07-11-2009, 7:25 AM In reply to

    Re: Default redirect used in IIS 6.0

  • 07-13-2009, 1:19 AM In reply to

    Re: Default redirect used in IIS 6.0

    Hi,

    thanks. I have read that already......

    my problem is

    when I check my website with search engine sites like bruceclay.com it says "302 found" for default html

    my exact scenario is

    1. I have set a default.html as a start page

    2. in default.html I redirect to another aspx page.

    from default to aspx I have set a 301 redirection throguh coding....

    but when i look through the bruceclay.com, it gives me 302 rediect

    what i thought is, it shows default.html redirect only, thats is IIS default redirect.

    why I require this means, I have moved to new pages in my old website

    and SEO is indexed on default.html

    I want to use 301 redirection for default.html to keep old rankings....

     pls help

     

  • 07-13-2009, 5:17 AM In reply to

    Re: Default redirect used in IIS 6.0

    Hi,

    I've already explained how to do this in my previous reply. Follow those instructions and your IIS server will always respond with a 301 when a user requests /default.html

    Regards,

    Paul Lynch | www.iisadmin.co.uk
Page 1 of 1 (8 items)
Microsoft Communities