I try to redirect a secondary domain towards a main domain, but for a reason URLs containing a directory path aren't redirected (e.g. www.secondaryDomain.com/aDirectory ). This is the section of the .htaccess file where the redirect instructions are (I guess). What is wrong here?
<ifModule mod_headers.c>
Header unset Last-Modified
</ifModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteCond %{HTTP_HOST} ^secondaryDomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.secondaryDomain\.com$
RewriteRule (.*) http://mainDomain.com/$1 [R=301,L,QSA]