.htaccess troubles with rewrites


#1

I’m having troubles with .htaccess rewrites. I have an .htaccess-file code, that is supposed to work:

Options -Indexes                        
RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(duration|views|date)/?$ index.php?by=$1 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^t/([a-z\-]{3,64})/p([0-9]{1,3})/?$ index.php?t=$1&p=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_\-]{3,22})/p([0-9]{1,3})/?$ index.php?n=$1&p=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^([a-z_\-]{3,22})/?$ index.php?n=$1 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^p([0-9]{1,3})/?$ index.php?n=main&p=$1 [L]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^t/([a-z\-]{3,64})/?$ index.php?t=$1 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_\-]{3,22})/(v[0-9]{1,9})/?$ index.php?n=$1&id=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(v[0-9]{1,9})/?$ index.php?id=$1 [L]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^t/([a-z\-]{3,64})/(v[0-9]{1,9})/?$ index.php?t=$1&id=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.+/t/([a-z\-]{3,64})/(v[0-9]{1,9})/?$ index.php?t=$1&id=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.+/([a-z_\-]{3,22})/(v[0-9]{1,9})/?$ index.php?n=$1&id=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.+/(v[0-9]{1,9})/?$ index.php?id=$1 [L]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^t/([a-z\-]{3,64})/(duration|views|date)/?$ index.php?t=$1&by=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^t/([a-z\-]{3,64})/p([0-9]{1,2})/(duration|views|date)/?$ index.php?t=$1&p=$2&by=$3 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_\-]{3,22})/p([0-9]{1,2})/(duration|views|date)/?$ index.php?n=$1&p=$2&by=$3 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^p([0-9]{1,3})/(duration|views|date)/?$ index.php?p=$1&by=$2 [L,NC]
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_\-]{3,22})/(duration|views|date)/?$ index.php?n=$1&by=$2 [L,NC]

However, I’m always getting a 404-error. I’m very bad with rewrites, could someone please have a look at this and tell me what’s wrong?