Results 1 to 6 of 6

Moving forum to a different directory

This is a discussion on Moving forum to a different directory within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Sorry to ask this here but i asked on vBulletin but got no answer =[ So.. I am trying to ...

  1. #1
    Member Array
    Real Name
    Dan Gamble
    Join Date
    Feb 2008
    Location
    Cambridge (U.K)
    Posts
    68
    Liked
    0 times

    Moving forum to a different directory

    Sorry to ask this here but i asked on vBulletin but got no answer =[ So..

    I am trying to move my forum from /forum to / aka the root. Whenever i move the files i get a 500 internal server error.

    What would be the best way of changing directory?

    Also will moving this effect vBSEO i have only had it installed for a day =]
    SceneCivic
    Honda Civic Community

  2. #2
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    What is your .htaccess file contents?
    Also will moving this effect vBSEO i have only had it installed for a day =]
    If you have it installed for one day only, that shoud not be a problem.
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member Array
    Real Name
    Dan Gamble
    Join Date
    Feb 2008
    Location
    Cambridge (U.K)
    Posts
    68
    Liked
    0 times
    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    RewriteBase /forum/
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    That is the contents of my .htaccess
    SceneCivic
    Honda Civic Community

  4. #4
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Try to remove RewriteBase line or replace it with:
    RewriteBase /
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Member Array
    Real Name
    Dan Gamble
    Join Date
    Feb 2008
    Location
    Cambridge (U.K)
    Posts
    68
    Liked
    0 times
    Dude, I think i love you

    Cheers buddy =]
    SceneCivic
    Honda Civic Community

  6. #6
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    I'm glad that worked for you
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Moving forum to root directory
    By Scribbller in forum URL Rewrite Settings
    Replies: 7
    Last Post: 01-07-2007, 06:48 PM
  2. Forum installation in /forum directory or / (root)
    By Future in forum General Discussion
    Replies: 1
    Last Post: 11-22-2006, 07:40 PM
  3. Moving my forum from the root to a directory
    By tpn87 in forum General Discussion
    Replies: 10
    Last Post: 10-08-2006, 05:39 AM
  4. Moving forum from directory
    By seba in forum General Discussion
    Replies: 1
    Last Post: 10-04-2006, 03:31 PM
  5. Moving sitemaps (virtually) to another directory
    By Lian in forum General Discussion
    Replies: 2
    Last Post: 07-19-2006, 10:48 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
  •