I want to take this URL:

```
http://www.awesomehost.com/accountants/Ceribelli-Associates-cd01qazwsxoztfnlvsim.html

```

And redirect it to:

```
http://www.awesomehost.com/accountants/accountant-directory.php?ID=cd01qazwsxoztfnlvsim

```

And here's what I have in my .htaccess for the accountants directory:

```
RewriteEngine On
RewriteRule ^accountants/(.*)-cd0(.*).html /accountants/accountant-directory.php?ID=cd0$2 [L,P]

```

I have also tried it with a leading slash and the P flag removed:

```
RewriteEngine On
RewriteRule ^/accountants/(.*)-cd0(.*).html /accountants/accountant-directory.php?ID=cd0$2 [L]

```

But for some reason, its not being triggered?

When I put in some random text in the .htaccess file, I get apache errors so I know its reading the file...

Any help out there??