Results 1 to 6 of 6

Having forum in /forum/ dir

This is a discussion on Having forum in /forum/ dir within the General Discussion forums, part of the vBulletin SEO Discussion category; Hi there. I put my vB site in a directory as at some stage I want to build a site ...

  1. #1
    Member
    Real Name
    zelnik
    Join Date
    Aug 2008
    Posts
    97
    Liked
    3 times

    Having forum in /forum/ dir

    Hi there.

    I put my vB site in a directory as at some stage I want to build a site around it and didn't want everything in the root.

    However, I have just read on another site that some search engines will refuse to crawl my site since my index.php just redirects to the /forum/index.php

    Can anyone please help?

    Site: My Spain - British Expat In Spain Forum (if it's down keep trying as host changeover is happening today hopefully)

    The source for index.php is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta name="generator" content="vBulletin 3.7.4" />
    <meta name="keywords" content="british,expat,spain,espana,resource,expat riate,residencia,pension,healthcare,retire,retired ,work,news,euro,nie,permit,resident,forum,communit y" />
    <meta name="description" content="The British Expat discussion forum for living in Spain" />

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Myspain.es - The British Expat community for Spain</title>
    </head>
    <?
    Header("Location:http://www.myspain.es/forum/index.php" );
    ?>
    <body>
    </body>
    </html>


    Thanks!

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    instead of setting a header like that, you should move your redirect rule into htaccess with a 301.

  3. #3
    Member
    Real Name
    zelnik
    Join Date
    Aug 2008
    Posts
    97
    Liked
    3 times
    Quote Originally Posted by briansol View Post
    instead of setting a header like that, you should move your redirect rule into htaccess with a 301.
    Thanks for the reply Brian much appreciated.

    I'll go have a Google and see how it's done! thanks once again.

  4. #4
    Member
    Real Name
    zelnik
    Join Date
    Aug 2008
    Posts
    97
    Liked
    3 times
    Hi Brian,

    Would appreciate some advice after Googling I've come up with this.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^myspain.es$ [NC]
    RewriteRule ^(.*)$ http://www.myspain.es/forum/$1 [R=301,L]

    Firstly have I got this right (it's /forum/index.php) and secondly is this the best route to take for SEO?

  5. #5
    Member
    Real Name
    matthew
    Join Date
    Dec 2008
    Posts
    33
    Liked
    0 times
    i would love to know this also.

  6. #6
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,367
    Liked
    542 times
    Blog Entries
    4
    If you donot use your root homepage effectively then the best is to use your forum index as start page. In order to do that you can add the following .htaccess to your root

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

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, 08:35 PM
  2. /forum urls resolving to /forum/forum
    By Jonathan in forum Bug Reporting
    Replies: 7
    Last Post: 08-03-2005, 03: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
  •