Url rewrite and redirection on win server

Discussion in 'Site & Server Administration' started by zokiii, May 22, 2006.

  1. #1
    How do you rewrite URLs and redirect files on WIN server ?

    Is there something like .htaccess file on win server ?
     
    zokiii, May 22, 2006 IP
  2. tschrock

    tschrock Peon

    Messages:
    527
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could use a meta refresh. Here is an example:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <DIV ALIGN="CENTER"><a href="YOUR SITE URL HERE"><FONT SIZE="1" COLOR="#000000">If
    you have not been redirected to our home page, please click here.</FONT></a></DIV><META
    HTTP-EQUIV="Refresh"
    CONTENT="0; URL=http://www.YOUR SITE URL HERE">
     
    tschrock, May 22, 2006 IP
  3. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Meta refresh wouldn't be a smart choice in this example. Look into a ASAPI filter for it. I think it's called ASAPIrewrite or something like that.
     
    ServerUnion, May 22, 2006 IP
  4. zokiii

    zokiii Peon

    Messages:
    656
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't use meta refresh for redirection,
    I am searching for something like 301 permanent redirect in .htaccess on apache
    ??

    Is there something like that on IIS ?

    and for rewriting I've found something, you can use ISAPI rewrite.
     
    zokiii, May 23, 2006 IP
  5. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ISAPIrewrite would be what you are looking for.
     
    ServerUnion, May 23, 2006 IP
  6. zokiii

    zokiii Peon

    Messages:
    656
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    and please tell me about redirection besides this meta refresh ?
     
    zokiii, May 23, 2006 IP
  7. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You DO NOT want to do client side meta refresh. Search engines wont like it and neither will you website users.

    Rewriting the url will allow you to do this

    The url will look like this to everyone: www.xxxx.com/article-1/using-mod-rewrite

    The server will rewrite it like this internally allowing you to use querystring variables, but not see any adverse effects with the serach engines

    www.xxxx.com/article.php?articleID=1
     
    ServerUnion, May 23, 2006 IP
  8. zokiii

    zokiii Peon

    Messages:
    656
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I'm not talking about URL rewriting, I'm talking about redirection.

    Example I wan't to redirect some page to some other page.
    Example www.xxx.com/xx.htm to www.xxx.com/new.htm

    I do redirection to not lose visitors and not to lose PR and backlinks.

    Redirection ?
     
    zokiii, May 23, 2006 IP
  9. MaxPowers

    MaxPowers Well-Known Member

    Messages:
    264
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #9
    you can use a 'rewrite' to re-write the URL that you would for redirection. when the 'old' URL s entered, the rewrite will force it to use the 'new URL' address.

    htaccess is not standard on windows machines and can only be used once isapi-rewrite is installed on the server and the server gets rebooted. I'm not even sure that it's called htaccess, but a true htaccess file is brought to you by the fine community of Apache.

    isapi_rewrite for IIS handles what mod_rewrite does for Apache (301 redirects).
     
    MaxPowers, May 23, 2006 IP
  10. zokiii

    zokiii Peon

    Messages:
    656
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Can I do something else .
    Because I do not want to rewrite URLs that I want to redirect.

    I want to hold visitors, PR and backlinks.

    I wont only redirect one page to another not rewriting URL.

    ??
     
    zokiii, May 23, 2006 IP
  11. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #11
    yes, you would need to do a 301 redirect, which you can do with the ISAPI filter or on the page level by sending a 301 redirect in the HTTP Headers. Good luck...
     
    ServerUnion, May 23, 2006 IP
  12. zokiii

    zokiii Peon

    Messages:
    656
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #12
    zokiii, May 23, 2006 IP