ErrorDocument 404 http://ddlmania.org
RewriteEngine on
RewriteRule free-download-(.*)\.htm$ /index.php?q=$1
RewriteRule page-(.*)\.htm$ /index.php?page=$1
RewriteRule free-direct-download-(.*)-(.*)\.htm$ /go.php?go=Download&id=$1&title=$2
RewriteRule free-xxx-direct-download-(.*)-(.*)\.htm$ /go2.php?go=Download&id=$1&title=$2
RewriteRule top-direct-download-(.*)-(.*)\.htm$ /go.php?go=Download&id=$1&title=$2&top=1
RewriteRule top-xxx-direct-download-(.*)-(.*)\.htm$ /go2.php?go=Download&id=$1&title=$2&top=1
RewriteRule query-(.*)-(.*)\.htm$ /index.php?q=$1&page=$2
RewriteRule type-(.*)\.htm$ /index.php?type=$1
RewriteRule porno-(.*)\.htm$ /xxxindex.php?type=$1
RewriteRule gamespg-(.*)\.htm$ /index.php?type=Game&page=$1
RewriteRule appspg-(.*)\.htm$ /index.php?type=App&page=$1
RewriteRule tvpg-(.*)\.htm$ /index.php?type=TV&page=$1
RewriteRule moviespg-(.*)\.htm$ /index.php?type=Movie&page=$1
RewriteRule musicpg-(.*)\.htm$ /index.php?type=Music&page=$1
RewriteRule ebookpg-(.*)\.htm$ /index.php?type=eBook&page=$1
RewriteRule templatepg-(.*)\.htm$ /index.php?type=Template&page=$1
RewriteRule scriptpg-(.*)\.htm$ /index.php?type=Script&page=$1
RewriteRule xxxpg-(.*)\.htm$ /xxxindex.php?type=Xxx&page=$1
RewriteRule otherpg-(.*)\.htm$ /index.php?type=Other&page=$1
RewriteRule gamesquery-(.*)-(.*)\.htm$ /index.php?type=Game&q=$1&page=$2
RewriteRule appsquery-(.*)-(.*)\.htm$ /index.php?type=App&q=$1&page=$2
RewriteRule tvquery-(.*)-(.*)\.htm$ /index.php?type=TV&q=$1&page=$2
RewriteRule moviesquery-(.*)-(.*)\.htm$ /index.php?type=Movie&q=$1&page=$2
RewriteRule musicquery-(.*)-(.*)\.htm$ /index.php?type=Music&q=$1&page=$2
RewriteRule ebookquery-(.*)-(.*)\.htm$ /index.php?type=eBook&q=$1&page=$2
RewriteRule templatequery-(.*)-(.*)\.htm$ /index.php?type=Template&q=$1&page=$2
RewriteRule scriptquery-(.*)-(.*)\.htm$ /index.php?type=Script&q=$1&page=$2
RewriteRule xxxquery-(.*)-(.*)\.htm$ /xxxindex.php?type=Xxx&q=$1&page=$2
RewriteRule otherquery-(.*)-(.*)\.htm$ /index.php?type=Other&q=$1&page=$2
RewriteRule top-(.*)\.htm$ /top.php?toptype=$1
RewriteRule mirror-(.*)\.htm$ /mirror.php?m=$1
RewriteRule topsites/?$ http://ddlmania.org
RewriteRule file-(.*)-(.*)\.htm$ /download$1.php
RewriteRule news-(.*)-(.*)\.html$ /news/page.php?id=$1&title=$2
RewriteCond %{REQUEST_URI} ^\/cachedpg\/(.*)$
RewriteRule ^(.*)$ /frame2.php?pg=%1