Results 1 to 10 of 10

Force Forum Root as Homepage - expanded to other 'vB Powered Sections'

This is a discussion on Force Forum Root as Homepage - expanded to other 'vB Powered Sections' within the vBSEO Features Archive forums, part of the vBulletin Links & Resources category; This feature is pretty powerful.. removing all those nasty /index.php duplicate links from our forums. What would be nice is ...

  1. #1
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times

    Force Forum Root as Homepage - expanded to other 'vB Powered Sections'

    This feature is pretty powerful.. removing all those nasty /index.php duplicate links from our forums.

    What would be nice is the ability to define other directories, at root/, /forum/, or below /forum/ level, that would also have their index.php links consolidated into / links.

    In case I'm not clear enough.. New Zealand Photo Gallery - New Zealand Boards and New Zealand Boards

    Note that the second one redirects itself to my forum homepage.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hi Ace,

    there is a new option that can be manually set in config file to change all "/folder/index.php" to "/folder/" on the rewritten pages
    PHP Code:
        define('VBSEO_FORCEHOMEPAGE_ROOT',  1); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Perfect!

    Now, my next suggestion involves an install service and several beautiful women...


  4. #4
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hi Ace,

    there is a new option that can be manually set in config file to change all "/folder/index.php" to "/folder/" on the rewritten pages
    PHP Code:
        define('VBSEO_FORCEHOMEPAGE_ROOT',  1); 
    Hmmm.. I don't see that.

    I see
    PHP Code:
    define('VBSEO_HP_FORCEINDEXROOT',             1); 
    .. but as you can see, it is set to 1 already, and my Gallery (/photos/index.php) is still redirecting to Forum Home when the index.php part is used. :(

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    It should be near the bottom of config (these are two different options).
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Senior Member BamaStangGuy's Avatar
    Real Name
    Brent Wilson
    Join Date
    Aug 2005
    Location
    Huntsville, Alabama
    Posts
    2,483
    Liked
    0 times
    I have it in mine

  7. #7
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Ahh yes.

    Mine ends in
    PHP Code:
        // ****** CUSTOM CHARACTER REPLACEMENTS ******
        // The following array e 
    ..so I am going to assume my connection died whilst downloading.

    I have enabled it but it's not doing what I thought it would..

    nzboards.com/photos/index.php still shows when looking at (for example) New Zealand Boards - New Zealand Photo Gallery - General Images , and still redirects to Forum Home.

    I want it to redirect to /photos/ (ie: Remove the index.php duplication).

    Doable?

  8. #8
    Senior Member
    Real Name
    Dhillon
    Join Date
    Apr 2006
    Posts
    341
    Liked
    1 times
    didnt work,

  9. #9
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    3,998
    Liked
    11 times
    Nope.

    Oleg? Help please?

    (It looks like it works now on NZB because I manually edited the navbar in PP vBGallery templates.)

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You can put the following into .htaccess in corresponding folder right after "RewriteEngine on" line:
    Code:
    RewriteCond %{THE_REQUEST} index\.php
    RewriteRule ^index\.php$ http://www.domain.com/folder/ [L,R=301]
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. VBSEO crashing new server
    By MentaL in forum Troubleshooting
    Replies: 20
    Last Post: 12-11-2005, 07:55 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
  •