I've the next problem. I wish to redirect all demands that could indicat a particular directory (.htaccess is positioned inside it). Shortly speaking I wish to make use of the following rules:

1.

www.domain.com/directoryThatContainsHtaccess
=>
www.domain.com/directoryThatContainsHtaccess/specificPage.htm

2.

www.domain.com/directoryThatContainsHtaccess/
=>
www.domain.com/directoryThatContainsHtaccess/specificPage.htm

3.

www.domain.com/directoryThatContainsHtaccess/somePage.htm
=>
no redirection

I've attempted the next code but with no luck (I've finish track of redirection loop):

RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^$ http://www.domain.com/directoryThatContainsHtaccess/specificPage.htm [R=301,L]

I believe ^$ is incorrect.

Appreciate any help.

You need to put an ailment for file-title with RewriteCond %{REQUEST_FILENAME} !-f, provide the carrying out a try:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule .* specificPage.htm [R=301,L]