RewriteEngineOnRewriteBase/hakemisto/# If such file doesn't exist, handle the URLRewriteCond%{REQUEST_FILENAME}-f [or]RewriteCond%{REQUEST_FILENAME}-d
# If previous conds are true, skip following 3 rewritesRewriteRule.?-[S=3]# If request is coming from a bot, rewrite to index.php - otherwise index.htmlRewriteCond%{HTTP_USER_AGENT}(bot|crawl|facebookexternal|twitter|linkedin)[NC]# If match found, skip 1 rewriteRewriteRule.?-[S=1]RewriteRule(.*) index.html [L,S=1]RewriteRule(.*) index.php [L]