RewriteEngine On
#main domain refresh
RewriteCond %{HTTP_HOST} ^tieba.blue.cat$
RewriteCond %{REQUEST_URI} !^/tieba/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /tieba/$1
RewriteCond %{HTTP_HOST} ^tieba.blue.cat$
RewriteRule ^(/)?$ tieba/index.php [L]