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 Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Switching from forum[dot] to /forum - best approach?

This is a discussion on Switching from forum[dot] to /forum - best approach? within the General Discussion forums, part of the vBulletin SEO Discussion category; I am considering doing the switch from my forum on a subdomain to having it under my main site. The ...

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

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-02-2008, 12:31 AM
Member
 
Real Name: Bruce
Join Date: Aug 2008
Location: Riverstone, NSW, AUSTRALIA
Posts: 31
Switching from forum[dot] to /forum - best approach?

I am considering doing the switch from my forum on a subdomain to having it under my main site.

The problem, however, would be the links inside posts that point to forum.australianspeedway.com and how to get them to point to australianspeedway.com/forum.

There is also the issue of Google and what it has in terms of forum[dot].

Can anyway suggest ways to cover both of the above issues.... or should I just stay with what I have got....

Cheers
Bruce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 09-02-2008, 01:02 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
there's a couple steps you need to do to do this.
Assuming you aren't actually moving folders, and are simply removing the submain (ie, forum. subdomain points to public_html/forum folder on your doc tree)

place the following in your forum folder htaccess

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

If you use www's, change line to to include it on the domain.com

Now, you need to spoof google into thinking forums.domain.com still exists.
If you just kill the subdomain, going to forums.domain.com will get a 404/ invalid / etc page.

You need to create a NEW subdomain, called forums. BUT, you need to point it to a dummy folder. you can call it whatever you want besides a folder that already exists, including /forum

so, forum.domain.com will really load public_html/newfoldername/

Inside this folder, direct as above in an htaccess (the only file needed in the entire folder)

Code:
Rewrite Engine On
RewriteRule (.*) http://yourdomain.com/forum/$1 [L,R=301]
you can't do this natively in cpanel. It only allows for subdomain. to /subdomain folder point. you will have to login into ssh apache config.

That should do it. None of your links will break, there's no content/folders to move.
The tricky part is just setting up the new subdomain to include the new folder referenced by the old sudomain name.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 09-02-2008, 01:49 AM
Member
 
Real Name: Bruce
Join Date: Aug 2008
Location: Riverstone, NSW, AUSTRALIA
Posts: 31
Excellent, thanks Brian

Just on the forums. vs forum. Could I also just rename the public_html/forum subdir to public_html/forums, create another directory called forum and leave forum.australianspeedway.com there. The subdomain should still pickup the new forum directory where the .htaccess file would be doing the redirects....

If all this works out, I will do the same with gallery.australianspeedway.com and redirect things to australianspeedway.com/gallery...


Cheers
Bruce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 09-02-2008, 01:57 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
yup, if you want to do that,

leave subdomain as is.
rename /forum to /forums
re-create /forum and make the htaccess
Code:
Rewrite Engine On
RewriteRule (.*) http://yourdomain.com/forums/$1 [L,R=301]
that should do it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 09-02-2008, 01:59 AM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
as for your gallery... it might be a little trickeier, as "gallerys" is just, well, dumb and not english so you may need to come up with something else to use, maybe /pics or /photos or even keyword it, /speedwaygallery or something
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 09-02-2008, 02:05 AM
Member
 
Real Name: Bruce
Join Date: Aug 2008
Location: Riverstone, NSW, AUSTRALIA
Posts: 31
Quote:
Originally Posted by briansol View Post
yup, if you want to do that,

leave subdomain as is.
rename /forum to /forums
re-create /forum and make the htaccess
Code:
Rewrite Engine On
RewriteRule (.*) http://yourdomain.com/forums/$1 [L,R=301]
that should do it
Ah, of course - thanks

Quote:
Originally Posted by briansol View Post
as for your gallery... it might be a little trickeier, as "gallerys" is just, well, dumb and not english so you may need to come up with something else to use, maybe /pics or /photos or even keyword it, /speedwaygallery or something
Agree, gallerys is just plain dumb although galleries.... nah...

But I do like speedwaygallery, gonna use that one
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 09-13-2008, 01:39 PM
Member
 
Real Name: Bruce
Join Date: Aug 2008
Location: Riverstone, NSW, AUSTRALIA
Posts: 31
I took the plunge tonight and switched from a subdomain to a subdirectory for my forum. I created the .htaccess file as above and everything works brilliantly from the browser address bar....

But I was wondering.... will any links embedded in posts automatically work with both the .htaccess redirection AND VBSEO urls?

Cheers
Bruce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 09-16-2008, 01:09 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,538
the links in posts will point to the old area, and thus will get redirected by the htaccess real-time.
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


Similar Threads

Thread Thread Starter Forum Replies Last Post
Duplicate content - old forum thread copies on new forum, too len backus General Discussion 7 08-11-2008 12:00 PM
Forum Archive Ranks higher than forum homepage in Yahoo petforums General Discussion 3 11-16-2007 08:35 PM
[Forum For Sale] Ever wanted your own vBulletin Services Forum? FightRice Forum Marketplace 12 09-25-2006 02:02 PM
/forum urls resolving to /forum/forum Jonathan Bug Reporting 7 08-03-2005 03:19 AM


All times are GMT -4. The time now is 11:45 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.