Hello,
I want to turn off searching for .htaccess in my DA Server.
I added in httpd.conf:
In httpd-htaccess.conf I can manually add RewriteRules, for example:
Unfortunatelly, my RewriteRules doesn't work when I use SSL.
http://domain.com and https://domain.com work good
http://domain.com/A/B - works, but https://domain.com/A/B doesn't work. It give 404 error, because off lack of rewrite_rules. It worked with .htaccess files.
How should I add <Directory> to httpd-htaccess.conf to work both with SSL and normal HTTP?
I want to turn off searching for .htaccess in my DA Server.
I added in httpd.conf:
Code:
<Directory /*>
AllowOverride None
</Directory>
Include /etc/httpd/conf/extra/httpd-htaccess.conf
In httpd-htaccess.conf I can manually add RewriteRules, for example:
Code:
<Directory /home/user/domains/domain.com/public_html/>
RewriteEngine On
RewriteRule ^([A-z]*)/([A-z]+) ?class=$1&method=$2
</Directory>
Unfortunatelly, my RewriteRules doesn't work when I use SSL.
http://domain.com and https://domain.com work good
http://domain.com/A/B - works, but https://domain.com/A/B doesn't work. It give 404 error, because off lack of rewrite_rules. It worked with .htaccess files.
How should I add <Directory> to httpd-htaccess.conf to work both with SSL and normal HTTP?