Results 1 to 4 of 4

/forum to forum.

This is a discussion on /forum to forum. within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, I am currently getting a site ready for launch and I have decided to have the forum at forum.mysite.com ...

  1. #1
    Member
    Real Name
    Ross
    Join Date
    May 2007
    Posts
    63
    Liked
    0 times

    /forum to forum.

    Hi,

    I am currently getting a site ready for launch and I have decided to have the forum at forum.mysite.com instead of mysite.com/forum. The only problem I am having, is that when I set the subdomain up via CPanel, it makes the domain accessible via forum.mysite.com and mysite.com/forum. How would I go about redirecting anyone who goes to mysite.com/forum to forum.mysite.com?

    Cheers,

    Ross

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    You should setup 301 redirect as described in 301 Redirecting Domains
    Do not forget to update your licensed vBSEO URL via support ticket: https://www.vbseo.com/tickets/

  3. #3
    Member
    Real Name
    Ross
    Join Date
    May 2007
    Posts
    63
    Liked
    0 times
    Thanks for that.

    So just to confirm, in my forum file I should put:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.mysite\.com
    RewriteRule (.*) http://forum.mysite.com/$1 [R=301,L]
    and in the root:

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

    Ross

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Domain names in rewrite condition and rewrite rule must be the same.
    For the forum:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^forum\.mysite\.com
    RewriteRule (.*) http://forum.mysite.com/$1 [R=301,L]
    For domain root:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.mysite\.com
    RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]

Similar Threads

  1. Forum Archive Ranks higher than forum homepage in Yahoo
    By petforums in forum General Discussion
    Replies: 3
    Last Post: 11-16-2007, 07:35 PM
  2. /forum urls resolving to /forum/forum
    By Jonathan in forum Bug Reporting
    Replies: 7
    Last Post: 08-03-2005, 02:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •