SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Non-Member
    Join Date
    May 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to redirect www to known www in Asp.net ?

    I have a commercial website in Asp.net and i have to redirect my website from WWW to known WWW for Seo purpose.Is there any way to do this.

  2. #2
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,873
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    I am not sure what you mean by redirect your website from WWW to known WWW. But if you want to redirect the entire website, you can do that in IIS. You can set the redirection URL to whatever you want

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2012
    Posts
    117
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You need to manage your .htacess file for redirections, but I really think you need to give us more info about your project....

  4. #4
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,625
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    How would one use .htaccess on IIS?

  5. #5
    Non-Member
    Join Date
    Jul 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use Response.redirect may be a method to redirect as we generally use response. redirect method to redirect to pages in .Net.

  6. #6
    Community Advisor ULTiMATE's Avatar
    Join Date
    Aug 2003
    Location
    Bristol, United Kingdom
    Posts
    2,160
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    I assume you are talking about ensure that your site redirects from www to a non-www URL. For example, going to http://www.domain.com/page should take you to http://domain.com/page.

    This is easily done using IIS and the URL Rewrite option, or (if you're comfortable with the Web.Config file) writing this directly into the config file.

    http://weblogs.asp.net/owscott/archi...ww-to-www.aspx

    Basically, ensure that URL Rewrite is set up on your copy of IIS and then follow the steps.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •