Unstoppable Domains โ€” Expired Auctions

Mod_rewrite

SpaceshipSpaceship
Watch

Something Vague

Established Member
Impact
9
I need some assistance with some mod_rewrites - anyone think they could help me? Please drop a PM with your MSN. Or, if you can solve it here - that's great as well!

http://proxiesrus.com/avatars.php?ordner=avatars/Assorted Favourites&one=set&single=1&bild=1#anchor

I would like to make this more URL friendly, make it something like

http://proxiesrus.com/avatars/category/page.html (anything similar to this is great)

I am having trouble - this code doesn't do anything. What's wrong with it?

Code:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)-(.*)-(.*)-(.*)$ /avatars.php?ordner=$1/category&one$2=set&single=1&bild$3=anchor$4
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Give me a few minutes to figure out your links. :)
 
Last edited:
1
•••
0
•••
I think this is correct for your arcade.

For the .htaccess file. Somewhere near the bottom of the file. Can be anywhere after "rewrite engine on".
Code:
RewriteRule ^category([0-9]).php$ arcade.php?playgames=1&catid=$1 [L]
RewriteRule ^game([0-9][0-9][0-9]).php$ arcade_games.php?act=play&id=$1 [L]

For the top of each page. Not necessarily at the very top, just before any links for arcade pages.
Code:
{
ob_start(); 
function replace_for_mod_rewrite(&$s) 
{ 
$urlin = 
array( 
"'(?<!/)arcade.php\?playgames=1&catid=([0-9]*)'",
"'(?<!/)arcade_games.php\?act=play&id=([0-9][0-9][0-9]*)'",
); 
$urlout = array(
"category\\1.php",
"game\\1.php",

); 
$s = preg_replace($urlin, $urlout, $s); 
return $s; 
} 
}

And this is for near the bottom. Make sure it's after any links for arcade pages.
Code:
{
$contents = ob_get_contents(); 
ob_end_clean(); 
echo replace_for_mod_rewrite($contents); 
global $dbg_starttime; 
}

Hopefully that works. :)




in the templates file

replace
Code:
$templates['list_repeat_all'] = '<a href=\"{$_SERVER[\'PHP_SELF\']}?act=play&id={$stat[\'gId\']}\">{$stat[\'gName\']}</a><em>{$extra}</em><br />';
with
Code:
$templates['list_repeat_all'] = '<a href=\"game{$stat[\'gId\']}.php\">{$stat[\'gName\']}</a><em>{$extra}</em><br />';
 
Last edited:
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back