	
этот код вставь в файл 
.htaccess

#Питомцы 
RewriteRule ^petshop/?$ petshop.php [L,QSA] 
RewriteRule ^petshop/vugn/([0-9]*)/?$ petshop.php?vugn&pet_id=$1 [L,QSA] 
RewriteRule ^petshop/up/([0-9]*)/?$ petshop.php?up&pet_id=$1 [L,QSA] 
RewriteRule ^petshop/up/([0-9]*)/buy/?$ petshop.php?up&pet_id=$1&buy [L,QSA] 
RewriteRule ^petshop/([0-9]*)/?$ petshop.php?pet_id=$1 [L,QSA] 
RewriteRule ^petshop/up/([0-9]*)/str/?$ petshop.php?up&pet_id=$1&str [L,QSA] 
RewriteRule ^petshop/up/([0-9]*)/vit/?$ petshop.php?up&pet_id=$1&vit [L,QSA] 
RewriteRule ^petshop/up/([0-9]*)/agi/?$ petshop.php?up&pet_id=$1&agi [L,QSA] 
RewriteRule ^petshop/up/([0-9]*)/def/?$ petshop.php?up&pet_id=$1&def [L,QSA] 
RewriteRule ^petshop/up/([0-9]*)/mana/?$ petshop.php?up&pet_id=$1&mana [L,QSA] 
RewriteRule ^pet/([0-9]*)/?$ pet.php?pet_id=$1 [L,QSA] 
RewriteRule ^pets_sxvatki/?$ pets_sxvatki.php [L,QSA]

вот этот код 
в user.php 

if ($i['id'] == $user['id']) { 
$pet_u = mysql_query('SELECT * FROM `pet_u` WHERE `user_id` = "'.$user['id'].'"'); 
$pet_u = mysql_fetch_array($pet_u); 
if ($pet_u!=0) {?><div class='list'><img src='/images/pet/icon/<?=$pet_u['screen'];?>' alt=''/> <a href='/petshop/<?=$pet_u['pet_id'];?>/'><?=$pet_u['name'];?></a><br/> 
<img src='/petImage.php?sex=<?=$i['sex'];?>&w_1=<?=$w_1['item']?>&w_2=<?=$w_2['item']?>&w_3=<?=$w_3['item']?>&w_4=<?=$w_4['item']?>&w_5=<?=$w_5['item']?>&w_6=<?=$w_6['item']?>&w_7=<?=$w_7['item']?>&w_8=<?=$w_8['item']?>&pet=<?=$pet_u['screen'];?>' alt=''/> 
</div><?} 
else{echo "<div class='list'>У вас нет питомцев! 
<p><a href='/petshop/'><img src='/images/pet/icon.gif' alt='*'/> Питомцы</a></div>";} 
}elseif ($i['id'] != $user['id']) { 
$pet_u = mysql_query('SELECT * FROM `pet_u` WHERE `user_id` = "'.$id.'"'); 
$pet_u = mysql_fetch_array($pet_u); 
if ($pet_u!=0){?><div class='list'><img src='/images/pet/icon/<?=$pet_u['screen'];?>' alt=''/> <a href='/pet/<?=$pet_u['id'];?>/'><?=$pet_u['name'];?></a><br/> 
<img src='/petImage.php?sex=<?=$i['sex'];?>&w_1=<?=$w_1['item']?>&w_2=<?=$w_2['item']?>&w_3=<?=$w_3['item']?>&w_4=<?=$w_4['item']?>&w_5=<?=$w_5['item']?>&w_6=<?=$w_6['item']?>&w_7=<?=$w_7['item']?>&w_8=<?=$w_8['item']?>&pet=<?=$pet_u['screen'];?>' alt=''/> 
</div><?} 
else{echo "<div class='list'><img src='/images/pet/icon.gif' alt=''/> <a href='/petshop/'>Питомцы</a><br/>У игрока нет питомца</div>";}