Results 1 to 6 of 6

moving to root

This is a discussion on moving to root within the General Discussion forums, part of the vBSEO SEO Plugin category; Hello, 1st. this might be a bit complex, since I’m not really sure how to ask best Currently I have ...

  1. #1
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1

    moving to root

    Hello,

    1st. this might be a bit complex, since I’m not really sure how to ask best

    Currently I have a website running in root, and my forums running in forum/
    Now I’d like to use more of the possibilities of vBSEO for my website (root) (and rewriting my other ‘stuff’ located there)

    Would it be possible to move my forums from forum/ to root, but rewrite it – and here I mean everything – to forum/?

    Meaning http://mysite.com/forum/forumdisplay etc. stays http://mysite.com/forum/forumdisplay etc., except that it’s actually located here http://mysite.com/forumdisplay

    I know for sure some of it would be possible. I'm just not really sure about the ‘everything’ part.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Hello,

    you can define custom URL formats in vBSEO CP for your forum, like:
    forum/[forum_title]/
    instead of
    [forum_title]/

    and
    forum/[forum_title]/[thread_id]-[thread_title].html
    instead of
    [forum_title]/[thread_id]-[thread_title].html
    etc.

  3. #3
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    Thanks Oleg!

    I would have expected it ‘less fun’ and much more time consuming
    Everything is moved and rewritten to its original state.
    Basically, the downloading and uploading part was the most time-consuming.

    I guess I’m ready for the hours of optimizing now

    Just one question left. Having my forums rewritten to forum/ I assume my .htaccess will stay unchanged?
    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 /
    
    #RewriteCond %{HTTP_HOST} !^www\.die16-clan\.com
    #RewriteRule (.*) http://www.die16-clan.com/forum/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Edit:

    I don't get it, why is the .htaccess file different from vBSEO and the sitemap?
    vBSEO:
    Code:
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    sitemap:
    Code:
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    I assume I should use the vBSEO one?
    Last edited by Cor van Noorloos; 02-09-2009 at 04:34 PM.
    Turning Strigoi? Vampire Academy - Bèta.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    You should also replace these lines:
    Code:
    #RewriteCond %{HTTP_HOST} !^www\.die16-clan\.com
    #RewriteRule (.*) http://www.die16-clan.com/forum/$1 [L,R=301]
    with:
    Code:
    RewriteCond %{HTTP_HOST} !^www\.die16-clan\.com
    RewriteRule (.*) http://www.die16-clan.com/$1 [L,R=301]

  5. #5
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    thanks

    Edit:

    In my case it seems I should have been using
    Code:
    RewriteCond %{HTTP_HOST} !^die16-clan\.com
    RewriteRule (.*) http://die16-clan.com/$1 [L,R=301]
    Last edited by Cor van Noorloos; 02-09-2009 at 05:01 PM.
    Turning Strigoi? Vampire Academy - Bèta.

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Yes, this one should be used for the non-www domain.

Similar Threads

  1. Need help moving forum/ to root
    By webwizzy in forum Troubleshooting
    Replies: 17
    Last Post: 11-24-2008, 04:01 PM
  2. Moving forum out of root
    By Rocket 442 in forum General Discussion
    Replies: 2
    Last Post: 06-29-2008, 03:45 AM
  3. 301 rewrite help on moving forum root
    By rgourley in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 05-27-2008, 03:15 PM
  4. Moving forum to root directory
    By Scribbller in forum URL Rewrite Settings
    Replies: 7
    Last Post: 01-07-2007, 06:48 PM
  5. moving forum to root
    By Mike in forum General Discussion
    Replies: 1
    Last Post: 05-27-2006, 12:22 PM

Posting Permissions

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