RewriteEngine On
RewriteCond %{QUERY_STRING} ^q=(.*)
RewriteRule ^search.html* /directory/index.php?q=%1 [QSA,L]
RewriteRule ^sportsuche-details-(.*).html /index.php?q=$1 [QSA,L]
RewriteRule (.*)top20.html index.php?p=h [PT]
RewriteRule (.*)neueste_links.html index.php?p=d [PT]
#RewriteRule ^toplinks.html /index.php?q=d [QSA,L]
RewriteRule ^meldung-([0-9]*).html /report.php?id=$1 [QSA,L]
RewriteRule ^details-([0-9]*).html /details.php?id=$1 [QSA,L]
RewriteRule ^empfehlung-([0-9]*).html /refer.php?id=$1 [QSA,L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule (.*)Seite(.*)\.html$ $1/?p=$2 [PT]
## Pagination Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule (.*)seite-(\d+)\.html$ $1/?p=$2 [PT]
RewriteRule (.*)Seite-(.*)\.html$ $1/?p=$2 [PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]