1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How I redirect the URL?

Discussion in 'Site & Server Administration' started by satish nandanwar, May 25, 2012.

  1. #1
    I am facing the problem of redirecting the url containing the index.aspx page in IIS server. I tried the htaccess file to redirect the url but it doesn't worked more. I also gone with the webmaster tools to overcome the problem but it also get failed. I need some tips from you all that how can I redirect the link. Is there any otherways to redirect the links.
     
    satish nandanwar, May 25, 2012 IP
  2. rising_sun

    rising_sun Peon

    Messages:
    908
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have cpanel? Every cPanel has a redirect feature by which you can redirect pages to other page.
     
    rising_sun, May 25, 2012 IP
  3. selen

    selen Well-Known Member

    Messages:
    525
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    118
    #3
    Yes that's right, you can as well redirect in html, javascript or php
     
    selen, May 25, 2012 IP
  4. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #4
    htaccess is for linux/unix environment and IIS is windows for which its not working. you need to do redirection for windows. not sure what you are exactly trying to do with the redirection. in some cases you can get away with just meta url redirection if you are not doing any permanent redirect. just do a search for windows url redirection and you will find some resource.
     
    sultanofseo, May 25, 2012 IP
  5. EscalateSEO

    EscalateSEO Banned

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    23
    #5
    It looks like your site is hosted at GoDaddy, just get their customer support to do it for you ;)
     
    EscalateSEO, May 25, 2012 IP
  6. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #6
    Redirection in IIS is a bit difficult.

    Anyway, use this code:

    <script runat="server">
    private void Page_Load(object sender, System.EventArgs e)
    {
    Response.Status = "301 Moved Permanently";
    Response.AddHeader("Location","http://www.example.com/new-page.asp");
    }
    </script>
    Code (markup):


    That code will go before the opening html (<html>) tag in old page.
     
    Abhik, May 25, 2012 IP