RewriteEngine On RewriteCond %{HTTP_HOST} !^(www\.)?valdez\.hr$ [NC] RewriteRule ^ - [L] RewriteCond %{HTTP_HOST} ^valdez.hr$ [NC] RewriteRule ^/(.*)$ http://www.valdez.hr/$1 [L,R=301] RewriteRule ^typo3$ - [L] RewriteRule ^typo3/.*$ - [L] RewriteRule ^uploads/.*$ - [L] RewriteRule ^fileadmin/.*$ - [L] RewriteRule ^typo3conf/.*$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule (.*[^/])$ http://%{HTTP_HOST}/$1/ [L,R] RewriteCond %{REQUEST_FILENAME}/index.html -f RewriteRule / %{REQUEST_URI}/index.html [L] RewriteCond %{REQUEST_FILENAME}/index.htm -f RewriteRule / %{REQUEST_URI}/index.htm [L] RewriteCond %{REQUEST_FILENAME}/index.php -f RewriteRule / %{REQUEST_URI}/index.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule .* /index.php