vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Team: Hot or Not? Ready for Traffic Explosion? vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! vBSEO Helps Forum Earn $100/day from Google AdSense Discover the Power of "Long Tail Search" Crawlability Inc. Files for SEO Technology Patent
se sw

301 Redirecting Domains

This is a discussion on 301 Redirecting Domains within the General Discussion forums, part of the vBulletin SEO Discussion category; I hope you don't mind me resurrecting an old thread... I need to do a redirect in .htaccess so that ...

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

Enhancing 80 million pages.

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack (1) Thread Tools
  #46  
Old 08-13-2007, 05:56 AM
eJM's Avatar
eJM eJM is offline
Senior Member
 
Real Name: Jim McClain
Join Date: May 2006
Location: teh Ether
Posts: 230
I hope you don't mind me resurrecting an old thread...

I need to do a redirect in .htaccess so that people and search engines that had URLs to an old UBBThreads installation on this domain, now get redirected to the vBulletin forum home page. The thread IDs and all the folder and file names are different, but the domain is the same.

So, anyone looking for any folder or file residing in (with and without www) longrangehunting.com/ubbthreads should get redirected to www.longrangehunting.com/forums.

Can someone help me with writing that?

Thanks,

Jim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #47  
Old 08-13-2007, 11:31 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 20,307
Blog Entries: 1
Hello,

you should create .htaccess file in ubbthreads/ folder:
Code:
RewriteEngine on
RewriteRule .* http://www.longrangehunting.com/forums/? [L,R=301]
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #48  
Old 08-13-2007, 01:46 PM
eJM's Avatar
eJM eJM is offline
Senior Member
 
Real Name: Jim McClain
Join Date: May 2006
Location: teh Ether
Posts: 230
Thank you Oleg.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #49  
Old 08-22-2007, 06:55 AM
Griffin's Avatar
Member
 
Real Name: Sean James
Join Date: Jan 2006
Location: Sydney Australia
Posts: 86
vbseo allows you to changes /forums/index.php to /forums/ which is a great feature, but how do i do this from non-vBulletin pages?

I would like to the change the root index files domain.com/index.php to domain.com

Ive been searching these forums for a about 1 hour and cant find a solution for this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #50  
Old 08-22-2007, 08:13 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 20,307
Blog Entries: 1
You can create .htaccess in domain root for that:

Code:
RewriteEngine on
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{THE_REQUEST} "T /index.php"
RewriteCond %{QUERY_STRING} ^$
RewriteRule .* http://www.domain.com/? [L,R=301]
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #51  
Old 08-22-2007, 09:40 AM
Griffin's Avatar
Member
 
Real Name: Sean James
Join Date: Jan 2006
Location: Sydney Australia
Posts: 86
Quote:
Originally Posted by Oleg Ignatiuk View Post
You can create .htaccess in domain root for that:

Code:
RewriteEngine on
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{THE_REQUEST} "T /index.php"
RewriteCond %{QUERY_STRING} ^$
RewriteRule .* http://www.domain.com/? [L,R=301]
awesome thanks mate been searching for ages for this code

Works perfectly Bluepearl Design - Professional Web Design - Professional Templates

One last thing, i also have a rewrite code to change links like www to http://www will these codes work properly together?

Code:
RewriteEngine On
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{HTTP_HOST} !^www\.bluepearl-design\.com [NC]
RewriteCond %{HTTP_HOST} !^$ 
RewriteRule ^(.*) http://www.bluepearl-design.com/$1 [L,R=301] 
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{THE_REQUEST} "T /index.php"
RewriteCond %{QUERY_STRING} ^$
RewriteRule .* Bluepearl Design - Professional Web Design - Professional Templates? [L,R=301]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #52  
Old 08-22-2007, 11:07 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 20,307
Blog Entries: 1
Yes, it should work fine together.
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #53  
Old 08-25-2007, 11:24 PM
Junior Member
 
Real Name: Wolf
Join Date: Feb 2007
Posts: 26
I'm trying to redirect, and I think my code is correct but it's not redirecting. Here's what I have...

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^u-connex\.com
RewriteRule ^(.*)$ http://www.u-connex.com/$1 [R=permanent,L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #54  
Old 08-26-2007, 08:59 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 20,307
Blog Entries: 1
Hello,

make sure that your host supports mod_rewrite and rewrite rules are allowed in .htaccess.
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #55  
Old 08-26-2007, 12:21 PM
Junior Member
 
Real Name: Wolf
Join Date: Feb 2007
Posts: 26
Yes, they do support mod_rewrite.

Edit: NVM got it fixed

Last edited by wolf32; 08-27-2007 at 11:01 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #56  
Old 09-05-2007, 09:28 AM
Griffin's Avatar
Member
 
Real Name: Sean James
Join Date: Jan 2006
Location: Sydney Australia
Posts: 86
I have my gallery in a sub-directory Bluepearl Design - Bluepearl Gallery what do i get to my .htaccess to change incoming links to /gallery/index.php to /gallery/ like my forums?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #57  
Old 11-25-2007, 05:03 PM
Member
 
Real Name: Gary Mullins
Join Date: Jan 2006
Location: Nashville, TN
Posts: 65
I have tried the code here to redirect all traffic for pimprig.com to pcapex.com but when I implement that code then instead of seeing my site I see a default Red Hat Linux test page? Any idea what's up with that?

Here is a bit more info that may help. The site orginally was pimprig.com. When I switched to pcapex.com I simply added pcapex.com to the domain alias list in the Ensim CP. Since then I have been unable to forward visitors to the new domain from the old one. I would REALLY like to get this sorted out.
__________________
Admin, http://www.pcapex.com and http://www.gameapex.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #58  
Old 11-25-2007, 05:07 PM
Keith Cohen's Avatar
vBSEO Staff
vBSEO Total Customer SupportBig Board Administrator
 
Real Name: Keith Cohen
Join Date: Jul 2005
Location: Raleigh, NC USA
Posts: 6,183
Blog Entries: 1
Replied to you here: Redirecting the xxx.com to www.xxx.com
__________________
Keith Cohen / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.



My Personal Sites: My Blog | GPS Discussion Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #59  
Old 11-25-2007, 06:34 PM
Member
 
Real Name: Gary Mullins
Join Date: Jan 2006
Location: Nashville, TN
Posts: 65
I just tried what you suggested but when I implement the .htaccess below in the domain root folder I get a Red Hat page like this:

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

Result:
Red Hat Enterprise Linux Test Page This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the Apache HTTP server installed at this site is working properly.



When I remove that redirect code then it loads the page correctly. Strange, huh? What makes it EXTRA strange is that I am using this .htaccess code on the many subdomains on the site and it works great:

RewriteEngine On

RewriteBase /reviews

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

ErrorDocument 401 /errordocs/401.htm
ErrorDocument 403 /errordocs/403.htm
ErrorDocument 404 /errordocs/404.htm
ErrorDocument 500 /errordocs/500.htm

Any idea how to get the root folder to work right with these redirects?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #60  
Old 11-25-2007, 06:51 PM
Member
 
Real Name: Gary Mullins
Join Date: Jan 2006
Location: Nashville, TN
Posts: 65
I even tried something simple like this to forward http://pcapex.com to http://www.pcapex.com. This is the .htaccess code I used as well as the result:

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

ErrorDocument 401 /errordocs/401.htm
ErrorDocument 403 /errordocs/403.htm
ErrorDocument 404 /errordocs/404.htm
ErrorDocument 500 /errordocs/500.htm

Result (trying to bring up a page on our root domain):

Forbidden You don't have permission to access /advertising.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Last edited by GlitterKill; 11-25-2007 at 07:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Forum Jump

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 08:51 PM.


Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.