WordPress.org

Ready to get started?Download WordPress

Forums

Do I have to use "www."? (10 posts)

  1. csburdick
    Member
    Posted 8 years ago #

    I originally had my site in WP as "http://automoblog.net" but I could not use "http://www.automoblog.net" It would not show up. So I changed it to using the www. and now it wont show up when I type in "http://automoblog.net" Can I only have one or the other?

  2. jazzle
    Member
    Posted 8 years ago #

    You can have either, see no-www.org/

  3. google_earth
    Member
    Posted 8 years ago #

    .... but settle one one and keep to that forever otherwise you may experience issues with Google when it thinks it has duplicate content on http://www.domain and domain.

  4. jazzle
    Member
    Posted 8 years ago #

    Good point, though Google really ought to be able to cope with that one.

    I think that the 'www.' should be removed automatically, meaning both are accessible.

  5. csburdick
    Member
    Posted 8 years ago #

    so you think i should redirect "www.domain" to "domain"?

  6. jazzle
    Member
    Posted 8 years ago #

    yup, that means it's still available if there are any old links.

    you may want to do it the other way round though depending on the look of your URL.

  7. manstraw
    Member
    Posted 8 years ago #

    Your web host is more of a factor here than anything else, or rather, how your web server is configured. Mine treats http://www.domain.com and domain.com as the same place on the server, and returns identical files. I would speak to your web host about this if it's important to you to support both at the same time.

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    so you think i should redirect "www.domain" to "domain"?

    Or vice-versa, whichever you prefer. It makes things a lot easier to redirect one to the other for several reasons.
    -It avoids search engines treating your site as two sites
    -It gives you a standardized format for any stats you may be compiling
    -It just generally adds consistency and makes your site look a bit more professional...

    I personally prefer it without the www at the beginning, but to each his own. I redirect all www traffic to my normal domain name. Works nicely. Also makes configuration a heck of a lot nicer for a lot of software packages, including WordPress.

  9. csburdick
    Member
    Posted 8 years ago #

    OK how do I redirect it?

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    You can add this to your httpd.conf, or possibly to your .htaccess file. Change the domain name, obviously.

    Also, remove the space in http, I had to add that because of the way this forum works.

    RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
    RewriteRule ^(.*)$ ht tp://example.com/$1 [R=301,L]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.