Page 2 of 2 FirstFirst 1 2
Results 16 to 20 of 20

www v. no www

This is a discussion on www v. no www within the General Discussion forums, part of the vBulletin SEO Discussion category; I did this as well and set preferred URL to non www in GWT....

  1. #16
    Senior Member
    Real Name
    Arkidas
    Join Date
    Feb 2008
    Posts
    254
    Liked
    1 times
    I did this as well and set preferred URL to non www in GWT.

  2. #17
    Member
    Real Name
    Bruce
    Join Date
    Aug 2008
    Location
    Riverstone, NSW, AUSTRALIA
    Posts
    64
    Liked
    0 times
    Quote Originally Posted by briansol View Post

    Code:
    RewriteCond %{HTTP_HOST} !^yourdomain\.com
    RewriteRule (.*) http://yourdomain.com/$1 [L,R=301]
    Quote Originally Posted by bernard View Post
    Brian, your code would preclude you from using any subdomains on your site (like forums.domain.com, blog.domain.com, etc.), correct?
    Quote Originally Posted by Shadab View Post
    Nope. Sub-Domains won't be affected by this.
    Ummm, I have a slight problem. I implemented the Rewrite rules as posted by Brian and now my forum subdomain does not work. Instead of going to forum.australianspeedway.com it goes to australianspeedway.com/forum.

    Can anyone tell me what I did wrong and how to restore my forum subdomain back again? I have had "forum." for years and want to keep it as Google has been indexing it for years.

    I guess this is the first fopar in my road to SEO, lucky I didn't do it while I have vbSEO, I am just in preparatory stage!

    Any help would be appreciated.

    Cheers
    Bruce

  3. #18
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    What is the exact rule you implemented?

    In your case, it should be:

    Code:
    RewriteCond %{HTTP_HOST} !^forum\.australianspeedway\.com
    RewriteRule (.*) http://forum.australianspeedway.com/$1 [L,R=301]

  4. #19
    Member
    Real Name
    Bruce
    Join Date
    Aug 2008
    Location
    Riverstone, NSW, AUSTRALIA
    Posts
    64
    Liked
    0 times
    Well, I changed it back to ^www.australianseedway.com and the "forum." subdomain returned. Can't quite understand why given the comments above though....

    Cheers
    Bruce

  5. #20
    Member
    Real Name
    Bruce
    Join Date
    Aug 2008
    Location
    Riverstone, NSW, AUSTRALIA
    Posts
    64
    Liked
    0 times
    Quote Originally Posted by Keith Cohen View Post
    What is the exact rule you implemented?

    In your case, it should be:

    Code:
    RewriteCond %{HTTP_HOST} !^forum\.australianspeedway\.com
    RewriteRule (.*) http://forum.australianspeedway.com/$1 [L,R=301]
    Hi Kieth

    I used the one Brian posted as it was previously forcing www. All I wanted to do was remove the www. so I would have australianspeedway.com AND forum.australianspeedway.com but the change didn't work. I then changed it to the version posted by JohnnyBGood and everything returned

    Cheers
    Bruce
    Last edited by OzSpeedway; 08-21-2008 at 11:37 AM. Reason: spelling

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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