AddHandler application/x-httpd-php-5.6 .php DirectoryIndex index.php RewriteEngine on AddDefaultCharset utf-8 Options -Indexes RewriteEngine On RewriteRule ^(.*)\.html$ $1.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php ErrorDocument 404 /error.php RewriteRule ^users/(.*)$ info/profile.php?nick=$1 [L,QSA] RewriteRule ^seller/([0-9]+)$ market/incfiles/usinf.php?id=$1 [L,QSA] RewriteRule ^forum/thema([0-9]+)/?$ forum/viewtopic.php?id=$1 [L,QSA] RewriteRule ^viewforum/thema([0-9]+)/?$ forum/viewtopic.php?id=$1 [L,QSA]