Moving Forum From Main Domain To Sub Domain

Discussion in 'Web Development and Programming' started by iTalk, Apr 13, 2013.

  1. iTalk

    iTalk Regular Member

    Joined:
    Apr 2, 2013
    Messages:
    9
    Likes Received:
    2
    Location:
    England
    I recently moved one of my forums to a sub-domain to facilitate a full site, instead of just a forum.

    The problem I'm now facing is that the 800+ indexed pages are sending the organic traffic to 404 pages. I realise I need to setup a redirect, but I'm not sure how I need to do it.

    So basically I need to redirect every 'domain.com/Thread-' to the new 'domain.com/forum/Thread-'

    Would appreciate any help and sorry if this isn't the right section.

    Thanks,
    John
     
  2. nab1x9

    nab1x9 Regular Member

    Joined:
    Apr 3, 2013
    Messages:
    40
    Likes Received:
    13
    Location:
    VietNam
    Your example is not subdomain moving. What exactly is it.

    http://domain.com to http://domain.com/forum is just directory changing. In that case do something with .htaccess.

    PHP:
    RewriteEngine on
    RewriteBase 
    /
    RewriteRule ^(.*)$ http://yourdomain.com/forum/$1[R=301,L]
     
    Brandon likes this.
  3. Carlos

    Carlos Regular Member

    Joined:
    Apr 20, 2003
    Messages:
    751
    Likes Received:
    251
    Location:
    California
    Just an FYI, I don't think this has any "improvement" so to speak. You will have a hard time getting [back] visitors if you do it this way, then have a decision to go full domain (e.g. domain.com). So decide if this is your permanent "home."

    I speak from experience with EverythingHalo: It was on a domain.com/forum sub-directory, and all typed-in www.everythinghalo.com went directly there, so I had to rebuild the community all over again with google and other search engines. Halo 4 was months away from release, and we suffered badly when we moved to xenForo. Thereafter, I went to work on redirection from /forum and it's threads to domain.com
     

Share This Page