I have a .htaccess file in /var/www/html/htc directory with specific rules to bookmatic.net and another .htaccess file with general rules to all domains in /var/www/html
When accesing bookmatic.net, the .htaccess file in /htc is running good, but the one in /html is being ignored. Can anyone help?
bookmatic.net specs in httpd.conf are like this:
<VirtualHost *:443>
ServerName bookmatic.net
ServerAlias *.bookmatic.net
DocumentRoot /var/www/html/htc
AllowEncodedSlashes On
<Directory /var/www/html/htc>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
LimitRequestBody 25000000
LimitXMLRequestBody 25000000
</Directory>
RewriteEngine on
</VirtualHost>
.htaccess
files in your question. (From comments below it sounds like you may have a conflict or directives that are incompatible in the context they are being used?) Also, why are you enabling theRewriteEngine
in the vHost, you don't appear to have any mod_rewrite directives here? And why are you enablingMultiViews
?