I'm trying to re-write all traffic to an old\_site folder 

```
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)/(.+) old_site/$1/$2 [NC,QSA,L]

```

Works fine for

```
/blog/profile/index.php OR /blog/posts.php

```

But why doesn't it match 

```
/blog/login/ or /blog/login

```

Do I need to specify a separate rule to handle directories with and without trailing slash/ ?

EDIT: 

As per slugonamission I've added the -d directive

```
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*) old_site/$1/$2 [NC,QSA,L]

```

It's works for /blog/login/ however not for /blog/login , somehow without the trailing slash, it's not thought of as a directory? Is there a way to modify the current rule or do I need a new one to add the slash?