<IfModule mod_rewrite.c>

RewriteEngine On 

RewriteBase /

RewriteRule ^(space|network)\-(.+)\.html$ $1.php?rewrite=$2 [L] 

RewriteRule ^(space|network)\.html$ $1.php [L] 

RewriteRule ^(toplist|date|ask|story|search)\.html$ $1.php [L] 

RewriteRule ^([0-9]+)$ space.php?uid=$1 [L] 

</IfModule>