Question : problem with my .htaccess file

Hi Experts,

On the server of my provider I've got a public_html with in it:
production (folder)
test (folder)
beta (folder)
.htaccess  (file)

My .htaccess is attached to this post. And it works just fine for the production redirection. It redirects the www.mysite.nl  to the production folder.

But in order to reach the test folder I've made sub domain called http://test.mysite.nl and it should point to the test folder in my public_html folder. But since I've put the .htaccess file in place this does not work anymore.

My question:  Can both work by changing the .htaccess file? And what should be changed?

Thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
Options +FollowSymLinks
RewriteEngine On
RewriteBase / 
RewriteCond %{REQUEST_URI} !(\.|/$) 
RewriteRule (.*) http://www.mysite.nl/$1/ [R=301,L] 
RewriteCond %{HTTP_HOST} ^mysite.nl$ 
RewriteRule ^/?(.*)$ http://www.mysite.nl/$1 [R=301,L] 
RewriteCond %{REQUEST_URI} !^/production
RewriteRule ^(.*)$ production/$1 [L]

Answer : problem with my .htaccess file

You could just skip the 3 rules when the HTTP_HOST is test.mysite.nl e.g.

RewriteEngine On
RewriteBase /
#
# The following "3" rules do not apply to test.mysite.nl
RewriteCond %{HTTP_HOST} test.mysite.nl
RewriteRule .* - [S=3]
#
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.mysite.nl/$1/ [R=301,L]
#
RewriteCond %{HTTP_HOST} ^mysite.nl$
RewriteRule ^/?(.*)$ http://www.mysite.nl/$1 [R=301,L]
#
RewriteCond %{REQUEST_URI} !^/production
RewriteRule ^(.*)$ production/$1 [L]
Random Solutions  
 
programming4us programming4us