Page 1 of 5 1 2 3 4 5 LastLast
Results 1 to 15 of 62

301 Redirecting Domains

This is a discussion on 301 Redirecting Domains within the General Discussion forums, part of the vBulletin SEO Discussion category; I have a ton of domains I want to go through and 301 redirect to make sure none of the ...

  1. #1
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times

    301 Redirecting Domains

    I have a ton of domains I want to go through and 301 redirect to make sure none of the current redirects I am using on those are causing my Google problems.

    For example:

    I own v6mustangs.com and want to 301 redirect to mustangevolution.com what do I need to add to .htaccess?

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    .htaccess in your forum directory:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.mustangevolution\.com
    RewriteRule (.*) http://www.mustangevolution.com/forum/$1 [R=301,L]

    .htaccess in your root:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.mustangevolution\.com
    RewriteRule (.*) http://www.mustangevolution.com/$1 [R=301,L]
    Last edited by Keith Cohen; 11-13-2006 at 05:05 PM.

  3. #3
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    I mean I want to redirect v6mustangs.com to Mustangevolution.com... unless I am missing something... just replace v6mustangs.com in the first line?

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    No, that will redirect anything NOT mustangevolution.com.

  5. #5
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    ah ok

  6. #6
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    != not

  7. #7
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    Yea I didnt catch that the first time

  8. #8
    Member
    Real Name
    Larry Eitel
    Join Date
    Jun 2006
    Posts
    33
    Liked
    0 times
    I have figured out how to redirect requests for pages that WERE residing in a directory called forum. They now properly go to www.domain.com/.....

    The part i have NOT figured out is the syntax to insure that any pages that come in WITHOUT the www. ie, domain.com/..... will have the WWW. prepended to the URL.

    I'm almost there....

    Quote Originally Posted by Keith Cohen
    .htaccess in your forum directory:
    Code:
    RewriteCond %{HTTP_HOST} !^www\.mustangevolution\.com
    RewriteRule (.*) http://www.mustangevolution.com/forum/$1 [R=301,L]
    .htaccess in your root:
    Code:
    RewriteCond %{HTTP_HOST} !^www\.mustangevolution\.com
    RewriteRule (.*) http://www.mustangevolution.com/$1 [R=301,L]

  9. #9
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Quote Originally Posted by LarryEitel

    The part i have NOT figured out is the syntax to insure that any pages that come in WITHOUT the www. ie, domain.com/..... will have the WWW. prepended to the URL.
    The code I posted (and you quoted) does exactly that.
    Last edited by Keith Cohen; 07-04-2006 at 10:13 PM.

  10. #10
    Member
    Real Name
    Larry Eitel
    Join Date
    Jun 2006
    Posts
    33
    Liked
    0 times
    Goes to show how much I have to learn. Seems to do the trick.

    By the way, can you tell me why the page loads and then reloads again. Is it reloading as it encounters different rules? Or does the page load AFTER it evaluates any/all the rules and conditions in the .htaccess.

    Please appreciate that one of the reasons I purchased vbseo was the education I would receive on SEO. Thank you for the excellent support and service. I just got things going last night and even on a fairly 'hacked' vb 3.6 beta, vbseo runs with out a hiccup.

  11. #11
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Not sure about the loading/reloading. Did you put the commands above the vBSEO commands?
    Last edited by Keith Cohen; 07-04-2006 at 11:34 PM.

  12. #12
    Member
    Real Name
    Larry Eitel
    Join Date
    Jun 2006
    Posts
    33
    Liked
    0 times
    Yes as a matter of fact, these are all the commands that occur before vbseo commands:
    PHP Code:
    RewriteEngine on
    RewriteCond 
    %{HTTP_HOST} !^www\.noblood\.org
    RewriteRule 
    (.*) http://www.noblood.org/$1 [R=301,L]
    RewriteRule ^forum/(.*) http://www.noblood.org/$1 [L,R=301]

    # -FrontPage-
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* 
    Do you see anything I could/should remove or rearrange?

  13. #13
    Member Crow's Avatar
    Real Name
    Crow
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    82
    Liked
    0 times
    Blog Entries
    1
    I'm dumb, Fixed it!

  14. #14
    Senior Member Brandon Sheley's Avatar
    Real Name
    Brandon Sheley
    Join Date
    Oct 2005
    Location
    Kansas
    Posts
    2,347
    Liked
    19 times
    Blog Entries
    1
    Quote Originally Posted by Crow View Post
    I'm dumb, Fixed it!
    I'm Brandon, nice to meet ya
    My forums: General Forums | Admin Talk (running xenforo)

  15. #15
    Senior Member Lian's Avatar
    Real Name
    Lian
    Join Date
    Jun 2006
    Location
    Munich, DE
    Posts
    333
    Liked
    0 times
    Thanks for this thread, I can use the posted code

Page 1 of 5 1 2 3 4 5 LastLast

Similar Threads

  1. Redirecting Custom Rewrites outside forum folder
    By vissa in forum Bug Reporting
    Replies: 7
    Last Post: 03-10-2006, 06:55 PM
  2. 301 homepage
    By Ashley in forum General Discussion
    Replies: 2
    Last Post: 02-15-2006, 06:34 AM
  3. 301 Redirects .. built in?
    By Ace Shattock in forum General Discussion
    Replies: 1
    Last Post: 09-30-2005, 12:18 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
  •