## Rewrite something.domain.com/... to something.domain.com/... RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} ^((dev\.)(.+)\.)?(ere\.net)$ [NC] RewriteCond $1 !^(%3%|index\.php|runtime|robots\.txt|assets) RewriteRule ^(.*)$ http://%{HTTP_HOST}/%3%{REQUEST_URI} [QSA,L]