Options +FollowSymLinks
RewriteEngine On

#download control
#RewriteRule ^/?(.*/)?media/(.*) /cms/inc/download.php?sid=$1&id=$2

#dedi mod_rewrite support=1
RewriteCond %{QUERY_STRING} ^(.*)?$
RewriteRule ^/?(.*/)?([1-9][0-9]*)?cat([1-9][0-9]*)(,[^\?]*)? /index.php?rewrite_sid=$1&lang=$2&idcat=$3&rewrite_values=$4&%1
RewriteCond %{QUERY_STRING} ^(.*)?$
RewriteRule ^/?(.*/)?([1-9][0-9]*)?side([1-9][0-9]*)(,[^\?]*)? /index.php?rewrite_sid=$1&lang=$2&idcatside=$3&rewrite_values=$4&%1

#dedi mod_rewrite support=2
RewriteCond %{QUERY_STRING} ^(.*)?$
RewriteRule ^/?(.*/)?deutsch/([^,]*)(,[^\?]*)? /index.php?rewrite_sid=$1&lang=1&rewrite_path=deutsch/$2&rewrite_values=$3&%1
#example for lang2
RewriteCond %{QUERY_STRING} ^(.*)?$
RewriteRule ^/?(.*/)?en/([^,]*)(,[^\?]*)? /index.php?rewrite_sid=$1&lang=2&rewrite_path=en/$2&rewrite_values=$3&%1
