Options +FollowSymLinks
Options -Indexes
RewriteEngine On
RewriteBase /framework/
DirectoryIndex index.html index.php
#RewriteRule ^pictures/(.*)$ include/thumb.php?src=$1 [L,QSA]
#RewriteRule ^ajax/(.*)$ ajax.php?q=$1 [L,QSA]

RewriteCond %{REQUEST_URI} "/admin/" 
RewriteRule (.*) $1 [L]

RewriteRule ^[^\.]+\.php$ index.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


#RedirectMatch "\.php$" index.php?q=$1 [L,QSA]
#RewriteRule ^(.*)$ index.html [L,QSA]
