So, I have a rewrite rule that is supposed to redirect an old URL to a new one:
RewriteRule ^(.*)/-/manufacturers/(.*)$ $1/manufacturers–$2 (R=301,NC)
This is located in the .htaccess for the domain (though I’ve tested it in the /pub/.htaccess as well with no luck). However, when this rule is present in the .htaccess file, the URL doesn’t become domain.com/category/manufacturers–name.html. Instead, it becomes domain.com/pub/category/manufacturers–name.html. Furthermore, all URLs, including those not containing manufacturers, suddenly gets /pub/ prepended.
Where am I supposed to set up rewrite rules if not in the domain’s root .htaccess?