<IfModule mod_rewrite.c>
Options All -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html

RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ control.php?smkakh=$1&q=$2
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ control.php?smkakh=$1&q=$2&r=$3&v=$4
DirectoryIndex control.php
</IfModule>
