Results 1 to 15 of 15

question about vbseo with a homepage

This is a discussion on question about vbseo with a homepage within the General Discussion forums, part of the vBSEO SEO Plugin category; Hello. I am wondering if this is possible. I have a homepage, named index.php. My forum home is forum.php. I ...

  1. #1
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times

    question about vbseo with a homepage

    Hello.

    I am wondering if this is possible. I have a homepage, named index.php. My forum home is forum.php. I have it set in vBSEO CP to redirect index.php to the root. But it redirects to forum.php instead. So if you go to http://www.mysite.com/index.php, it goes to http://www.mysite/forum.php, but I want it to go to http://www.mysite.com/. Now I know that this can easily be fixed by doing a 301 in .htaccess, but that is not an option, as ibproarcade uses the vbulletin index.php for saving scores and when I do that in .htaccess it breaks my arcade.

    So is there any way to redirect it to the root in a way that it will work with the arcade?

    Thanks in advanced.

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    i beleive you need to uncheck the FORCE FORUMHOME AS ROOT option the vbseocp.php page, and also, on the home aliases, be sure to change
    index.php
    index.php?

    to
    forums.php
    forums.php?

  3. #3
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    Hello, and thanks for your reply. I tried that and it still allows you to enter index.php and not redirect to the root.

    Basically what I am looking for is a way to redirect index.php to the root without affecting the arcade score saving.

    Thanks.

  4. #4
    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
    Hello Andrew ,

    I also have the same structure with you. Index.php my homepage and forum.php as forumhome. I have default .htaccess and have force forum root as homepage enabled with the following two options : index.php index.php?

    Can you please check the following two setting in vBulletin AdminCp Site Name / URL / Contact setting group :
    Forum URL :
    Homepage URL :
    and make sure they are both domain.com
    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

  5. #5
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    Hello. My forum URL and Homepage URL are both http://www.domain.com.

    I have my vBSEO settings the same as you, too.

    Here is my .htaccess:

    AddHandler application/x-httpd-php5 .php

    ErrorDocument 401 /401.htm
    ErrorDocument 404 /404.htm
    ErrorDocument 403 /403.htm
    ErrorDocument 500 /500.htm

    RewriteEngine On

    RewriteBase /

    RewriteCond %{HTTP_HOST} !^www\.puretalkforum\.com
    RewriteRule (.*) http://www.puretalkforum.com/$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]
    Thanks for your reply. All I want is for index.php to rewrite to the domain root but still letting the arcade use the index.php.

    Is there any way to use a conditional in .htacess? Sorry, I don't know apache well. In English, it would ideally be "if condition - referring url is not arcade.php, rewrite index.php to the domain root.

    I hope we will be able to get it the way I would like.

  6. #6
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    Also, if I block index.php in my robots.txt, would that be bad? I don't want spiders to index my index.php, only my root. If I block index.php, would it also block the root or would I be fine??

    Thanks in advanced.

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Please try to add this in .htaccess after "RewriteEngine on" line:

    Code:
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{REQUEST_URI} index\.php$
    RewriteRule .* http://www.puretalkforum.com/ [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!


  8. #8
    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 the problem is caused by the arcade i suggest you to edit index.php and add the following just after <?php
    Code:
    // ibProArcade
    if($_POST['module'] == "pnFlashGames")
    {
            require_once('./global.php');
    
            switch($_POST['func'])
            {
                    case "storeScore":
                    $_GET['act'] = "Arcade";
                    $_GET['module'] = "arcade";
                    $_GET['do'] = "pnFStoreScore";
                    break;
    
                    case "saveGame":
                    $_GET['do'] = "pnFSaveGame";
                    break;
    
                    case "loadGame":
                    $_GET['do'] = "pnFLoadGame";
                    break;
    
                    case "loadGameScores":
                    $gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_NOHTML);
                    $uid= $vbulletin->userinfo['userid'];
                    $game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
                    $scores = $game[score];
    
                    if($scores != false)
                    {
                            //Return true
                            print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
                    }
                    else
                    {
                            print "&opSuccess=false&error=Error&endvar=1";
                    }
                    break;
            }
    }
    
    $act = $_GET[act];
    $autocom = $_GET[autocom];
    $showuser= $_GET[showuser];
    if($act == "Arcade" || $autocom=="arcade") {
    include "arcade.php";
    exit();
    }
    if(!empty($showuser) && $showuser >= 1) {
    $u = $showuser;
    $_GET[u] = $showuser;
    include "member.php";
    exit();
    }
    
    // end of ibProArcade
    You can then remove it from forum.php

    This is also the way i am using in order to submit scores. Maybe this will help you.
    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

  9. #9
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Please try to add this in .htaccess after "RewriteEngine on" line:

    Code:
    RewriteCond &#37;{REQUEST_METHOD} GET
    RewriteCond %{REQUEST_URI} index\.php$
    RewriteRule .* http://www.puretalkforum.com/ [L,R=301]

    Thanks for your reply.

    After I add that, I get the following in ff 2.0.0.4:

    The page isn't redirecting properly













    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.








    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.
    when accessing my homepage.

    Quote Originally Posted by Mert G&#246;k&#231;eimam View Post
    If the problem is caused by the arcade i suggest you to edit index.php and add the following just after <?php
    Code:
    // ibProArcade
    if($_POST['module'] == "pnFlashGames")
    {
            require_once('./global.php');
    
            switch($_POST['func'])
            {
                    case "storeScore":
                    $_GET['act'] = "Arcade";
                    $_GET['module'] = "arcade";
                    $_GET['do'] = "pnFStoreScore";
                    break;
    
                    case "saveGame":
                    $_GET['do'] = "pnFSaveGame";
                    break;
    
                    case "loadGame":
                    $_GET['do'] = "pnFLoadGame";
                    break;
    
                    case "loadGameScores":
                    $gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_NOHTML);
                    $uid= $vbulletin->userinfo['userid'];
                    $game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
                    $scores = $game[score];
    
                    if($scores != false)
                    {
                            //Return true
                            print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
                    }
                    else
                    {
                            print "&opSuccess=false&error=Error&endvar=1";
                    }
                    break;
            }
    }
    
    $act = $_GET[act];
    $autocom = $_GET[autocom];
    $showuser= $_GET[showuser];
    if($act == "Arcade" || $autocom=="arcade") {
    include "arcade.php";
    exit();
    }
    if(!empty($showuser) && $showuser >= 1) {
    $u = $showuser;
    $_GET[u] = $showuser;
    include "member.php";
    exit();
    }
    
    // end of ibProArcade
    You can then remove it from forum.php

    This is also the way i am using in order to submit scores. Maybe this will help you.
    I actually have this code in my index.php. The problem is that when the arcade tries to access it, it redirects to the homepage because it rewrites index.php to the homepage.

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

    After I add that, I get the following in ff 2.0.0.4:
    try to change it to:
    Code:
    RewriteCond &#37;{REQUEST_METHOD} GET
    RewriteCond %{THE_REQUEST} index\.php
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule .* http://www.puretalkforum.com/ [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!


  11. #11
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    Thank you very much. That worked perfectly.

  12. #12
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    Just one thing, which I am sure is an easy fix. My admincp now redirects to the root. Fix please? Thanks. You've been very helpful.

  13. #13
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    I think I was able to do it myself. Please tell me if I did it right. I changed it to this:

    RewriteCond &#37;{REQUEST_METHOD} GET
    RewriteCond %{THE_REQUEST} "T /index.php"
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule .* http://www.puretalkforum.com/ [L,R=301]
    Is this correct?

    Thanks again for all of your help.

  14. #14
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Yes, that's correct
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  15. #15
    Member
    Real Name
    Kovich
    Join Date
    Dec 2006
    Location
    United States
    Posts
    55
    Liked
    0 times
    Great! I'm learning.

    Thanks so much!

Similar Threads

  1. The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD
    By Joe Ward in forum General Discussion
    Replies: 49
    Last Post: 09-20-2011, 08:10 PM
  2. vBSEO 2.2.0 Released - Google/Yahoo Sitemap Compatible
    By Juan Muriente in forum vBSEO Announcements
    Replies: 58
    Last Post: 11-17-2005, 11:49 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
  •