<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /webcms
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|public|robots\.txt)
RewriteRule ^(.*)$ /webcms/index.php?/$1 [L]
</IfModule>