Page 9 of 18 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 LastLast
Results 121 to 135 of 267
Like Tree3Likes

[How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects

This is a discussion on [How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects within the General Discussion forums, part of the vBSEO SEO Plugin category; Originally Posted by zems So if I am using non www in google, should I do it also in .htaccess ...

  1. #121
    Member
    Real Name
    neo
    Join Date
    Oct 2008
    Posts
    85
    Liked
    0 times
    Quote Originally Posted by zems View Post
    So if I am using non www in google, should I do it also in .htaccess ?
    Your settings in Google only affect Google, your .htaccess file is a global setting.

  2. #122
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Quote Originally Posted by zems View Post
    So if I am using non www in google, should I do it also in .htaccess ?
    I would recommend it as setting it in Google is just for Google to get the best effect you want to set you .htaccess as this is then a global setting.

    Ceri

  3. #123
    Senior Member
    Real Name
    Darko
    Join Date
    Apr 2009
    Posts
    167
    Liked
    0 times
    Just set it in .htaccess.
    Thank you Neo and Ceri

  4. #124
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    correct, and also in your vboptions -> BB URL setting. They should all match.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #125
    Senior Member
    Real Name
    Rick
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    158
    Liked
    0 times
    I scanned through this thread and didnt see a full answer..

    so far I have

    site.com -> www.site.com

    and would like to handle

    site.com/chat/ -> www.site.com/chat/

    do I have to be concerned about the slash at the end of chat. ie if someone puts site.com/chat it wont redirect?

    Anyone willing to provide the rewrite?

    thanks

  6. #126
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Hi,

    As long as you don't have another .htaccess file inside the chat folder then the rule supplied on the first page will be all you need it redirects anything after the domain to the new one so site.com/whatever/ will go to www.site.com/whatever

    Ceri

  7. #127
    Senior Member
    Real Name
    Rick
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    158
    Liked
    0 times
    Yea, I have tried a few times to get it to work but continue to have it fail in my /chat/ directories. I understand that the root pub html htaccess is recursive and carries over so I have added a new htaccess file to the /chat/ dir.

    For whatever reason, it will not rewrite. However, the htaccess is being used as I can break it and disable the site.

    Thoughts?

  8. #128
    Member
    Real Name
    Tony
    Join Date
    Sep 2006
    Location
    Huntington Beach, CA
    Posts
    87
    Liked
    0 times
    So, which one do we set in Google Webmaster tools then? www or non-www? Which one is better? Currently, we have been using Google Webmaster tools, but have the "Preferred domain" not set.

    Help?

  9. #129
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    1 times
    Blog Entries
    1
    Quote Originally Posted by Kihon View Post
    So, which one do we set in Google Webmaster tools then? www or non-www? Which one is better? Currently, we have been using Google Webmaster tools, but have the "Preferred domain" not set.

    Help?
    There is no SEO effect between www or non-www however I use non-www because it's make the URL Short.

  10. #130
    Member
    Real Name
    Tony
    Join Date
    Sep 2006
    Location
    Huntington Beach, CA
    Posts
    87
    Liked
    0 times
    What if google has the www listed when you find the site in the keywords?
    Quote Originally Posted by marco1 View Post
    There is no SEO effect between www or non-www however I use non-www because it's make the URL Short.

  11. #131
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Quote Originally Posted by marco1 View Post
    There is no SEO effect between www or non-www however I use non-www because it's make the URL Short.
    Totally Agree, I use non-www for my sites for two reasons.
    1. no-www makes the URL's shorter. I do a lot of twitter promo and that extra 4chars makes all the difference.
    2. the www. subdomain is outdated and not needed now so if you have the choice why use something outdated?
      Clearly if you are already mostly indexed with the www. then keep it because just as much there is no point being re-indexed just for 4chars.

    What is important is that you stick to one and use it globally.

  12. #132
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    Use which ever google has the most results for.

    Then, set
    - webmaster tools preferred domain
    - htaccess
    - vboptions -> site url

    to all the same, either with or without.


    I personally prefer without as its simply un-necessary to use it anymore, but using www's is not bad either.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  13. #133
    Member
    Real Name
    Tony
    Join Date
    Sep 2006
    Location
    Huntington Beach, CA
    Posts
    87
    Liked
    0 times
    Results 1 - 10 of about 79,000 for makeuptalk.com/forums. (0.43 seconds)
    Results 1 - 10 of about 5,330,000 for MakeupTalk. (0.59 seconds)

    I think you mean that ^^^, right?



    Quote Originally Posted by Brian Cummiskey View Post
    Use which ever google has the most results for.

    Then, set
    - webmaster tools preferred domain
    - htaccess
    - vboptions -> site url

    to all the same, either with or without.


    I personally prefer without as its simply un-necessary to use it anymore, but using www's is not bad either.

  14. #134
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Quote Originally Posted by Kihon View Post
    Results 1 - 10 of about 79,000 for makeuptalk.com/forums. (0.43 seconds)
    Results 1 - 10 of about 5,330,000 for MakeupTalk. (0.59 seconds)

    I think you mean that ^^^, right?
    That would be the one, now see for you changing to non-www would be disastrous as the 5,330,000 URL's would all need to be reindexed, though it would be recommended you look at your redirect as currently makeuptalk.com/forums redirects to www.makeuptalk.com not www.makeuptalk.com/forums as it should.

  15. #135
    Member
    Real Name
    Tony
    Join Date
    Sep 2006
    Location
    Huntington Beach, CA
    Posts
    87
    Liked
    0 times
    here is my .htaccess:

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

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|redir\.php)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    How does that look?

    Quote Originally Posted by Ceri May View Post
    That would be the one, now see for you changing to non-www would be disastrous as the 5,330,000 URL's would all need to be reindexed, though it would be recommended you look at your redirect as currently makeuptalk.com/forums redirects to www.makeuptalk.com not www.makeuptalk.com/forums as it should.
    Also, while in Google Webmaster tools, I tried to set the "Display URLs as www.makeuptalk.com " but it keeps saying "Part of the process of setting a preferred domain is to verify that you own http://makeuptalk.com/. Please verify http://makeuptalk.com/."

    I thought I verified it over a year ago when Ifirst started using GWT, but now it says that. How do I verify it?

Page 9 of 18 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 LastLast

Similar Threads

  1. Urgent help with htaccess and 301 redirects
    By markbolyard in forum URL Rewrite Settings
    Replies: 4
    Last Post: 12-02-2007, 05:24 PM
  2. htaccess redirects when moving folder
    By I, Brian in forum Troubleshooting
    Replies: 3
    Last Post: 10-05-2007, 02:47 PM
  3. Help with initial htaccess setup
    By mhc1576 in forum URL Rewrite Settings
    Replies: 1
    Last Post: 12-28-2006, 07:44 AM
  4. Replies: 6
    Last Post: 10-23-2005, 01:32 PM

Posting Permissions

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