Fix Non-www to www URL

Discussion in 'Search Engine Optimization' started by pryidevsblog, Oct 8, 2013.

  1. #1
    Hey all members, Right now I am fixing the non-www to www url. My site is on IIS7 server. Anybody knows how can I fix my non-www to www url.

    Thanks all :):):):)
     
    pryidevsblog, Oct 8, 2013 IP
  2. competent123

    competent123 Notable Member

    Messages:
    1,750
    Likes Received:
    71
    Best Answers:
    6
    Trophy Points:
    255
  3. SASA Techno

    SASA Techno Active Member

    Messages:
    242
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #3
    Hi in my opinion use a 301 redirection select a www. urls and use a .htaccess..
     
    SASA Techno, Oct 8, 2013 IP
  4. shakiba.proba

    shakiba.proba Active Member

    Messages:
    264
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    88
    #4
    How can I fix my non-www to www url in Magento site....:):):)
    Please help me..
     
    shakiba.proba, Oct 8, 2013 IP
  5. ironcladservers

    ironcladservers Well-Known Member

    Messages:
    389
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    115
    #5
    Google is your friend. No doubt that with a quick search you'd get an answer! However yes, a redirect is all you really need. This link should help.
     
    ironcladservers, Oct 8, 2013 IP
  6. shakiba.proba

    shakiba.proba Active Member

    Messages:
    264
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    88
    #6
    Thanks for your reply. It's related to FTP server. My site is related to Magento E-commerce....
     
    shakiba.proba, Oct 8, 2013 IP
  7. ironcladservers

    ironcladservers Well-Known Member

    Messages:
    389
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    115
    #7
    I've not much experience with Magento, however is it set up as non-www in the Magento script settings/database? Sometimes all it takes is changing it from non-www to www in Magento itself to make the change you want.
     
    ironcladservers, Oct 8, 2013 IP
  8. Klarksen

    Klarksen Greenhorn

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #8
    If you have wordpress just go to Preferences then ->>WordPress-Adresse (URL)
     
    Klarksen, Oct 8, 2013 IP
  9. gorrillamcd

    gorrillamcd Member

    Messages:
    43
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    38
    #9
    @Klarksen, it's not a setting in Wordpress. What the OP needs is a 301-redirect to the preferred domain (either www or non-www). There's an article on Google Webmaster Tools that talks about setting your preferred version and suggests at the end that you use a 301-redirect to your preferred version of the domain: https://support.google.com/webmasters/answer/44231?hl=en
     
    gorrillamcd, Oct 8, 2013 IP
  10. pryidevsblog

    pryidevsblog Active Member

    Messages:
    46
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    53
    #10
    Gorrillamcd is right Klarksen. It is not setting with WordPress. I think I have to go with 301 as all other suggest me same. Thank you guys. :)
     
    pryidevsblog, Oct 10, 2013 IP
  11. pryidevsblog

    pryidevsblog Active Member

    Messages:
    46
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    53
    #11
    I am facing this problem in WordPress. My site is content Managment System and it is build in WordPress not Magento. :)
     
    pryidevsblog, Oct 10, 2013 IP
  12. gorrillamcd

    gorrillamcd Member

    Messages:
    43
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    38
    #12
    Since I've never used IIS7 before, I googled your problem and it's a fairly simple fix. @competent123 had the right idea with URL Rewrite. I found a tutorial that gives you both ways to make the redirect, using URL Rewrite or manually editing your web.config or applicationHost.config. Here's the link: http://weblogs.asp.net/owscott/archive/2009/11/27/iis-url-rewrite-rewriting-non-www-to-www.aspx

    If you like my answer, could you mark it as solved please. Also, check out @competent123's link above, as it has some other uses for URL Rewrite that you might find useful.
     
    gorrillamcd, Oct 11, 2013 IP
  13. Alexisnicholson

    Alexisnicholson Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #13
    If your website hosted on windows hosting (IIS7 server) you can try .htaccess to use 301 Redirection.
     
    Alexisnicholson, Oct 11, 2013 IP