vBulletin Search Engine Optimization
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 ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| ||||
| ||||
|
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] 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. |
|
#3
| |||
| |||
|
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 |
|
#4
| ||||
| ||||
|
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] |
|
#5
| ||||
| ||||
|
as for your gallery... it might be a little trickeier, as "gallerys" is just, well, dumb and not english |
|
#6
| |||
| |||
| Quote:
Quote:
But I do like speedwaygallery, gonna use that one |
|
#7
| |||
| |||
|
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 |
|
#8
| ||||
| ||||
|
the links in posts will point to the old area, and thus will get redirected by the htaccess real-time.
|
| Thread Tools | |
| |
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 |