RewriteEngine On RewriteBase / RewriteCond $1 !^(index\.php|uploads|assets|assets_front|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ tms/index.php?$1 [L]