I'm dealing with a site that's had Multistore set up by using Configuration > Web > Url options > Add Store Code to Urls
.
Most everything works fine, except for some Modules producing 404 pages in the Administration area. For example, the MageStore Giftvoucher uses the URL giftvoucheradmin/adminhtml_giftvoucher/index
. Our admin path is simple /admin
so Magento is presuming that giftvoucheradmin
is a store URL and therefore throws up a 404.
This also became a bigger issue when we switched from using /admin
as our administration path to something more secure (eg /new_admin_path
), and got 404's throughout the admin.
After a considerable amount of debugging I found that adding the following into a custom module config.xml file solved the issue;
<global>
...
<request>
<direct_front_name>
<new_admin_path />
</direct_front_name>
</request>
...
</global>
Now I could add a node into request > direct_front_name for each of the URLs used that aren't store codes, frankly though it seems like a poor solution.
Is the only other way around this to change how the stores are configured, as outlined here by Ben Marks?