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.

Need help with www.

Discussion in 'Programming' started by ezymoneyathome, Oct 5, 2009.

  1. #1
    I have a new site that only opens if i use http:// if i try http://www. it wont open can anyone tell me whats wrong.

    Thanks in advance.
     
    ezymoneyathome, Oct 5, 2009 IP
  2. caprichoso

    caprichoso Well-Known Member

    Messages:
    433
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Nobody can as there is no information in your post.

    Anyhow, does your DNS resolve your domain name including www?
     
    caprichoso, Oct 5, 2009 IP
  3. akhilesh kanodia

    akhilesh kanodia Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    hello
    when this code is write in in notepad and save with web.xml then your site open

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <httpRedirect enabled="false" destination="http://www.beautifuljewelery.com" httpResponseStatus="Permanent" />
    <rewrite>
    <rules>
    <rule name="Redirect domain.com to www" patternSyntax="ECMAScript" stopProcessing="true">
    <match url=".*" />
    <conditions>
    <add input="{HTTP_HOST}" pattern="^beautifuljewelery.com$" />
    </conditions>
    <action type="Redirect" url="http://www.beautifuljewelery.com/{R:0}" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

    in this code replace beautifuljewelery.com to your site name.
     
    akhilesh kanodia, Aug 15, 2012 IP
  4. vbrocks

    vbrocks Active Member

    Messages:
    90
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    98
    #4
    Akhilesh, why are you redirecting to www, when he clearly said the www does not work??

    Easymoneyathome, first verify that this is not a DNS problem. Ping both domain names and make sure they both resolve to the same IP.
    Next, your web server must listen to both names, with and without www. I use IIS. I can help you with that. For Apache, there is plenty of info on the web.
     
    Last edited: Aug 15, 2012
    vbrocks, Aug 15, 2012 IP
  5. xtech

    xtech Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You will need to use .htaccess to redirect any non www traffic to www or vice versa. (In your case, 301 redirecting to non www from www)
    This will also help you with SEO as you'll not need to care if the backlinks you get are to the www version or not. The 301 redirect tells google to attribute the backlink to the original non www when it comes across such a link.
     
    xtech, Aug 15, 2012 IP