vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

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 ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-21-2007, 01:02 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
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.
__________________
http://www.puretalkforum.com <--forums
http://www.yournetdirectory.com <--link directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-21-2007, 04:36 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,476
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-21-2007, 05:58 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-21-2007, 06:44 PM
Mert Gökçeimam's Avatar
vBSEO.com Webmaster
vBSEO Total Customer SupportvBulletin HackerBig Board Administrator
 
Real Name: Lizard King
Join Date: Oct 2005
Location: Istanbul
Posts: 7,551
Blog Entries: 3
Send a message via MSN to Mert Gökçeimam
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 06-21-2007, 07:57 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
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:

Quote:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 06-21-2007, 08:07 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 06-21-2007, 08:40 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,450
Blog Entries: 1
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.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 06-21-2007, 08:43 PM
Mert Gökçeimam's Avatar
vBSEO.com Webmaster
vBSEO Total Customer SupportvBulletin HackerBig Board Administrator
 
Real Name: Lizard King
Join Date: Oct 2005
Location: Istanbul
Posts: 7,551
Blog Entries: 3
Send a message via MSN to Mert Gökçeimam
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 06-21-2007, 08:44 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
Quote:
Originally Posted by Oleg Ignatiuk View Post
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]

Thanks for your reply.

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

Quote:
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ökç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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 06-21-2007, 09:17 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,450
Blog Entries: 1
Quote:

After I add that, I get the following in ff 2.0.0.4:
try to change it to:
Code:
RewriteCond %{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.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11  
Old 06-21-2007, 09:57 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
Thank you very much. That worked perfectly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 06-21-2007, 10:32 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 06-21-2007, 11:40 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
I think I was able to do it myself. Please tell me if I did it right. I changed it to this:

Quote:
RewriteCond %{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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 06-22-2007, 07:30 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,450
Blog Entries: 1
Yes, that's correct
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 06-22-2007, 03:58 PM
Member
 
Real Name: Andrew
Join Date: Dec 2006
Posts: 55
Great! I'm learning.

Thanks so much!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
The vBSEO LinkBacks User Guide - vBSEO 3.0 GOLD Joe Ward General Discussion 25 06-05-2008 12:04 PM
vBSEO 2.2.0 Released - Google/Yahoo Sitemap Compatible Juan Muriente vBSEO Announcements 58 11-17-2005 11:49 PM


All times are GMT -4. The time now is 11:45 AM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.