HTML 301 Redirect Windows Server

Discussion in 'Search Engine Optimization' started by twalters84, Sep 22, 2007.

  1. #1
    twalters84, Sep 22, 2007 IP
  2. lovekills_s

    lovekills_s Well-Known Member

    Messages:
    230
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #2
    lovekills_s, Sep 22, 2007 IP
  3. twalters84

    twalters84 Peon

    Messages:
    514
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey there,

    Thanks for the help.

    My client did most of his linking to www.lukebouman.com without the index.html so maybe the PR will get transferred to index.cfm because it has higher precedence on the coldfusion server.

    Does anybody have any thoughts on this?

    Thanks in advance.

    Sincerely,
    Travis Walters
     
    twalters84, Sep 23, 2007 IP
  4. majed54

    majed54 Peon

    Messages:
    81
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    good for you
     
    majed54, Sep 23, 2007 IP
  5. wws

    wws Active Member

    Messages:
    148
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    Dear Travis,

    If you are using Google Sitemap tool and Yahoo sitemap tool, the url can be changed easily.

    Try for permanent redirect 301 as explained

    Thanks
    S
     
    wws, Sep 23, 2007 IP
  6. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #6
    you can use the codes below to create 301 redirect with asp or or asp.net

     
    trichnosis, Sep 23, 2007 IP
  7. twalters84

    twalters84 Peon

    Messages:
    514
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hey there,

    The only thing about ASP, is that the extension needs to be ASP, and I need to redirect an HTML page to CFM (coldfusion).

    However, I am not sure I even need to do this because the PR may get transferred to the default extension if everything links to just the domain name without the home page index file extension.

    I guess the only way to do it with pure HTML is through the IIS admin, and I doubt I would get access to that on a shared server.

    Regardless, thanks everyone for the information.

    Sincerely,
    Travis Walters
     
    twalters84, Sep 23, 2007 IP
  8. TextLinkCenter

    TextLinkCenter Peon

    Messages:
    100
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I use htaccess (on Linux) to totally remove the index page from the URL completely.

    domain.com/index.html
    domain.com/

    Are technically the same exact page, but Google can see it as two pages. I prefer to redirect index.html to /.

    Now I have no clue how to do this in non-Linux situations.

    Brandon
     
    TextLinkCenter, Sep 24, 2007 IP
  9. amanamission

    amanamission Notable Member

    Messages:
    1,936
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    210
    #9
    This is what I use in .htaccess on my apache server:

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.html? [NC]
    RewriteRule ^(([^/]*/)*)index\.html?$ http://www.yoursite.com/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^yoursite\.com [NC]
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]

    This addresses several canonicalization issues, including index.html and non-www versions.
     
    amanamission, Sep 24, 2007 IP