RewriteCond %{REQUEST_URI"} !.*\.php$ [NC]
RewriteCond %{REQUEST_URI"} !adminpanel$ [NC]
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule buy / [L,QSA]
RewriteRule art / [L,QSA]
RewriteRule gallery / [L,QSA]
RewriteRule contact / [L,QSA]
RewriteRule order / [L,QSA]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule buy / [L,QSA]
RewriteRule art / [L,QSA]
RewriteRule gallery / [L,QSA]
RewriteRule contact / [L,QSA]
RewriteRule order / [L,QSA]