I am currently facing an issue while setting up a multistore in Magento using subdirectories. My setup involves creating separate store views for different languages, and I'm trying to set each one up in its own subdirectory. I've followed various guides and tried different approaches, but I'm still encountering 404 errors whenever I try to access the store views via their subdirectories.
Here's what I have done so far:
I've created the necessary websites, stores, and store views in Magento's backend. For example, I've created a store view with the code 'bg' for the Bulgarian language.
I've copied the index.php and .htaccess files from the Magento root into my subdirectory (/bg).
I've made the necessary modifications to the index.php file in my subdirectory to specify the run code and run type.
I've ensured that the subdirectory, the copied index.php, and .htaccess files have correct permissions on the server.
I've checked and double-checked the base URLs for each store view in the Magento backend to ensure they're pointing to the correct subdirectories.
I've tried creating symlinks for the Magento folders (app/, errors/, ...) in the subdirectory.
I've flushed Magento's cache several times during this process.
Despite doing all this, I'm still encountering 404 errors. I've checked my server's error logs, but I can't find anything that would point to the cause of these errors. I'm running on a cPanel & WHM setup and as far as I can tell, there are no server-side issues causing this.