You should check that the Apache config allows for the .htaccess to be executed. In your virtualhost config, there should be a line:
AllowOverride All
If there isn’t, that’s why the .htaccess isn’t taking effect.
You should check that the Apache config allows for the .htaccess to be executed. In your virtualhost config, there should be a line:
AllowOverride All
If there isn’t, that’s why the .htaccess isn’t taking effect.