Options +FollowSymLinks
RewriteEngine On

#download control
#RewriteRule ^/?(.*/)?media/(.*) /cms/inc/download.php?sid=$1&id=$2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#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 ^/?(.*/)?de/([^.]*)(.[^\?]*)? /index.php?rewrite_sid=$1&lang=1&rewrite_path=de/$2&rewrite_values=$3&%1