vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade (https://vborg.vbsupport.ru/forumdisplay.php?f=170)
-   -   vbSEO & ibProArcade : Rewrite-rules (https://vborg.vbsupport.ru/showthread.php?t=190490)

MrZeropage 09-09-2008 08:22 PM

vbSEO & ibProArcade : Rewrite-rules
 
Here are the custom rewrite-rules you can add to your vbSEO to completely support ibProArcade:

Code:

// ibProArcade
'arcade\.php$' => 'arcade.html'
'arcade\.php\?&$' => 'arcade.html'
'arcade\.php\?&act=Arcade$' => 'arcade.html'
'arcade\.php\?do=play&gameid=(\d+)$' => 'arcade/game/$1.html'
'arcade\.php\?&act=Arcade&do=play&gameid=(\d+)$' => 'arcade/game/$1.html'
'arcade\.php\?act=Arcade&do=play&gameid=(\d+)$' => 'arcade/game/$1.html'
'arcade\.php\?&do=play&gameid=(\d+)$' => 'arcade/game/$1.html'
'arcade\.php\?do=play&gameid=(\d+)$' => 'arcade/game/$1.html'
'arcade\.php\?do=stats&gameid=(\d+)$' => 'arcade/game/highscores/$1.html'
'arcade\.php\?&act=Arcade&do=stats&gameid=(\d+)$' => 'arcade/game/highscores/$1.html'
'arcade\.php\?&act=Arcade&module=report&user=(\d+)$' => 'arcade/game/user-$1.html'
'arcade\.php\?&act=Arcade&do=viewtournaments$' => 'arcade/viewtournaments.html'
'arcade\.php\?&act=Arcade&do=viewtourney&tid=(\d+)$' => 'arcade/tournament/$1.html'
'arcade\.php\?&do=viewtourney&tid=(\d+)$' => 'arcade/tournament/$1.html'
'arcade\.php\?&act=Arcade&module=favorites&gameid =(\d+)$' => 'arcade/favgameid-$1.html'
'arcade\.php\?&act=Arcade&cat=(\d+)$' => 'arcade/category-$1.html'
'arcade\.php\?&act=Arcade&cat=(\d+)&st=(\d+)$' => 'arcade/category-$1/$2.html'
'arcade\.php\?&act=Arcade&module=report$' => 'arcade/own_report.html'
'arcade\.php\?&act=Arcade&module=settings$' => 'arcade/settings.html'
'arcade\.php\?&act=Arcade&module=modcp$' => 'arcade/modcp.html'
'arcade\.php\?&do=viewtourneyend$' => 'arcade/viewtourneyend.html'
'arcade\.php\?&do=viewtournaments$' => 'arcade/viewtournaments.html'
'arcade\.php\?&act=Arcade&do=createtourney$' => 'arcade/createtourney.htm'
'arcade\.php\?&act=Arcade&module=league$' => 'arcade/league.html'
'arcade\.php\?&act=Arcade&module=favorites&gameid=(\d+)$' => 'arcade/add-fav-game-$1.html'
'arcade\.php\?&act=Arcade&module=favorites$' => 'arcade/favourites.html'
'index\.php\?&act=Arcade&do=newscore$' => 'arcade/newscore.html'
'arcade\.php\?&act=Arcade&do=stats&gameid=(\d+)&st=(\d+)$' => 'arcade/game/highscores/$1/$2.html'
'arcade\.php\?&act=Arcade&gsearch=(\w+)&search_type=1$' => 'arcade/games/$1.html'
'arcade\.php\?&act=Arcade&gsearch=(\d+)-(\d+)&search_type=3$' => 'arcade/games/$1-$2.html'
'arcade\.php\?&act=Arcade&do=viewtourneyend$' => 'arcade/viewtourneyend.html'


pedroenf 09-10-2008 01:25 AM

Thank you very much MrZeropage.

Cocko 09-23-2008 09:07 PM

Thanx, too.

punchbowl 09-23-2008 10:13 PM

you should block google from your arcade with your robots file.

no point apart from cosmetics in these rewrites.

karlm 10-06-2008 02:36 AM

Is there anyway to get the file name instead of the game's ID number?
It would look very nice as http://mysite.com/arcade/tetris.html instead of http://mysite.com/arcade/game/3.html

newguy 10-19-2008 10:25 AM

This would go into the vbSEO Control Panel in the Custom Rewrite Rules box?

GreasySpoon 10-20-2008 11:35 AM

Thanks MrZeropage,

now i get a little more traffic from google to the arcade.

Quote:

Originally Posted by karlm (Post 1638281)
Is there anyway to get the file name instead of the game's ID number?
It would look very nice as http://mysite.com/arcade/tetris.html instead of [url]http://mysite.com/arcade/game/3.html[/url]

This would be really great and much better for SEO. It would be also usefull if there where an possibility to put the gamename into the title.

Quote:

Originally Posted by newguy (Post 1648225)
This would go into the vbSEO Control Panel in the Custom Rewrite Rules box?

Yes, just put it into the Custom Rewrite Rules box.

Greets
GreasySpoon

theque 10-21-2008 09:36 AM

cheers just what i needed i can allow google on my arcades again

SIINSI 10-27-2008 02:40 AM

After installing this I got the following error when making a thread with the word "Arcade" in it.

Warning: require(/public_html/forums/88720-added-20-more-games-arcade.php) [function.require]: failed to open stream: No such file or directory in /public_html/forums/vbseo.php on line 1470

Fatal error: require() [function.require]: Failed opening required '/public_html/forums/88720-added-20-more-games-arcade.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/forums/vbseo.php on line 1470

It looks like it is adding ".php" after the word arcade.

Edit: I just did a search on my site and any thread with the word "Arcade" in it gets this error. Any ideas how to fix?

M

newguy 10-27-2008 08:14 AM

Quote:

Originally Posted by SIINSI (Post 1653484)
After installing this I got the following error when making a thread with the word "Arcade" in it.

Warning: require(/public_html/forums/88720-added-20-more-games-arcade.php) [function.require]: failed to open stream: No such file or directory in /public_html/forums/vbseo.php on line 1470

Fatal error: require() [function.require]: Failed opening required '/public_html/forums/88720-added-20-more-games-arcade.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/forums/vbseo.php on line 1470

It looks like it is adding ".php" after the word arcade.

Edit: I just did a search on my site and any thread with the word "Arcade" in it gets this error. Any ideas how to fix?

M

Same thing happened to me. I removed what I added. I have one forum with Arcade as the name and it did that all in that forum when you clicked on many threads or made new ones.


All times are GMT. The time now is 04:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02553 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete