vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now!
vBSEO 2.0 Style Released vBSEO 3.3.0 GOLD Launched vBSEO's "LiveStats" for Google Analytics vB Sitemap Generator, Version 2.5 Success with vBSEO = 600ore Web Visitors + $1400 in a Day!

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 ...

Go Back   vBulletin SEO Forums > vBulletin SEO Discussion > General Discussion

Enhancing 80 million pages.


Reply

 

LinkBack (1) Thread Tools
  #1  
Old 05-17-2006, 10:01 PM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,415
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  1 links from elsewhere to this Post. Click to view. #2  
Old 05-17-2006, 10:06 PM
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,319
Re: 301 Redirecting Domains

.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]
__________________
My Blog | GPS Discussion Forum

Last edited by Keith Cohen; 11-13-2006 at 04:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 05-17-2006, 10:08 PM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,415
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
Re: 301 Redirecting Domains

I mean I want to redirect v6mustangs.com to Mustangevolution.com... unless I am missing something... just replace v6mustangs.com in the first line?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 05-17-2006, 10:09 PM
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,319
Re: 301 Redirecting Domains

No, that will redirect anything NOT mustangevolution.com.
__________________
My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 05-18-2006, 02:45 PM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,415
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
Re: 301 Redirecting Domains

ah ok
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 05-19-2006, 05:40 PM
briansol's Avatar
Senior Member
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 7,090
Re: 301 Redirecting Domains

!= not
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 05-19-2006, 08:17 PM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,415
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
Re: 301 Redirecting Domains

Yea I didnt catch that the first time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 07-04-2006, 08:23 PM
Member
 
Real Name: Larry Eitel
Join Date: Jun 2006
Posts: 32
Re: 301 Redirecting Domains

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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 07-04-2006, 09:01 PM
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,319
Re: 301 Redirecting Domains

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.
__________________
My Blog | GPS Discussion Forum

Last edited by Keith Cohen; 07-04-2006 at 09:13 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #10  
Old 07-04-2006, 09:39 PM
Member
 
Real Name: Larry Eitel
Join Date: Jun 2006
Posts: 32
Re: 301 Redirecting Domains

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #11  
Old 07-04-2006, 09:52 PM
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,319
Re: 301 Redirecting Domains

Not sure about the loading/reloading. Did you put the commands above the vBSEO commands?
__________________
My Blog | GPS Discussion Forum

Last edited by Keith Cohen; 07-04-2006 at 10:34 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #12  
Old 07-05-2006, 12:07 AM
Member
 
Real Name: Larry Eitel
Join Date: Jun 2006
Posts: 32
Re: 301 Redirecting Domains

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #13  
Old 07-30-2006, 09:10 PM
Crow's Avatar
Member
 
Real Name: Crow
Join Date: Jan 2006
Location: Michigan
Posts: 82
Blog Entries: 1
I'm dumb, Fixed it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #14  
Old 07-31-2006, 01:15 AM
Brandon Sheley's Avatar
Senior Member
vBSEO Pre-Release Team
 
Real Name: Brandon Sheley
Join Date: Oct 2005
Location: Kansas
Posts: 2,032
Blog Entries: 1
Send a message via AIM to Brandon Sheley Send a message via MSN to Brandon Sheley Send a message via Yahoo to Brandon Sheley
Quote:
Originally Posted by Crow View Post
I'm dumb, Fixed it!
I'm Brandon, nice to meet ya
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #15  
Old 07-31-2006, 02:01 AM
Lian's Avatar
Senior Member
Big Board Administrator
 
Real Name: Lian
Join Date: Jun 2006
Location: Munich, DE
Posts: 299
Thanks for this thread, I can use the posted code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)

LinkBack to this Thread: http://www.vbseo.com/f4/301-redirecting-domains-5061/

Posted By For Type Date
Logout Sorunu - Bütün üyeler tekrar login olmak zorunda - Webmaster Forum & Webmaster Okulu Post #2 Pingback 04-09-2008 05:00 PM

Similar Threads

Thread Thread Starter Forum Replies Last Post
Redirecting Custom Rewrites outside forum folder vissa Bug Reporting 7 03-10-2006 05:55 PM
301 homepage Ashley General Discussion 2 02-15-2006 05:34 AM
301 Redirects .. built in? Ace Shattock General Discussion 1 09-30-2005 11:18 AM


All times are GMT -4. The time now is 07:16 PM.


Powered by vBulletin Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.