config_rewrite.php:
<?php
if (!defined("FUNC_FILE")) die("Illegal File Access");
$rewrite_out = array(
"System.html",
"Services.html",
"Reklame.html",
"Contact.html",
"Recommend.html",
"Search.html",
"Topics.html",
"Add_News.html",
"Rules.html",
"Info.html",
"News.html",
"news-\\2-\\3.html",
"news-\\2.html",
"news-topic-\\2-\\3.html",
"news-topic-\\2.html",
"news-cat-\\2-\\3.html",
"news-cat-\\2.html",
"news-\\2-\\3.html"
);
$rewrite_in = array(
"'(?<!/)index.php\?name=System'",
"'(?<!/)index.php\?name=Services'",
"'(?<!/)index.php\?name=Reklame'",
"'(?<!/)index.php\?name=Contact'",
"'(?<!/)index.php\?name=Recommend'",
"'(?<!/)index.php\?name=Search'",
"'(?<!/)index.php\?name=Topics'",
"'(?<!/)index.php\?name=Add_News'",
"'(?<!/)index.php\?name=Rules'",
"'(?<!/)index.php\?name=Info'",
"'(?<!/)index.php\?name=News'",
"'(?<!/)index.php\?name=([newsNews]+)&op=article&sid=([0-9]+)&pagenum=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=article&sid=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&new_topic=([0-9]+)&pagenum=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&new_topic=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=cat&catid=([0-9]+)&pagenum=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=cat&catid=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=([a-z]+)&sid=([0-9]+)'"
);
?>
.htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index.html index.php [NC,L]
RewriteRule ^([a-zA-Z_]+)\.html$ index.php?name=$1 [NC,L]
RewriteRule ^news-([0-9]+).html$ index.php?name=News&op=article&sid=$1 [NC,L]
RewriteRule ^news-([0-9]+)-([0-9]+).html$ index.php?name=News&op=article&sid=$1&pagenum=$2 [NC,L]
RewriteRule ^news-topic-([0-9]+).html$ index.php?name=News&new_topic=$1 [NC,L]
RewriteRule ^news-topic-([0-9]+)-([0-9]+).html$ index.php?name=News&new_topic=$1&pagenum=$2 [NC,L]
RewriteRule ^news-cat-([0-9]+).html$ index.php?name=News&op=cat&catid=$1 [NC,L]
RewriteRule ^news-cat-([0-9]+)-([0-9]+).html$ index.php?name=News&op=cat&catid=$1&pagenum=$2 [NC,L]
RewriteRule ^news-(printpage|friendsend)-([0-9]+).html$ index.php?name=News&op=$1&sid=$2 [NC,L]