However, if users come from http://www.example.com/store1 or http://www.example.com/store2. It just return 404 Not Found when I browse via the site by clicking on links, so what part(s) of .htaccess should I modify to make it work? Thanks!
I’m sorry, I don’t understand what you’re trying to do. No matter, what you’ve done is wrong.
If you’re trying to create “3 online stores,” you’ll need to use three separate stores and, likely, using three domains. But, as I said, I don’t understand what your marching orders are.
Until that gets sorted out, there is no possibility of using mod_rewrite or .htaccess to do anything.
Maybe I try explain a little bit more by simplifying my question.
Basically there are 3 urls pointing to the same site, don’t worry about it is a Blog, a Store or a CMS, in order to achieve of what I am doing, I have to create aliases in Apache pointing to the same place.
But here is the problem, when those users come from http://www.example.com/store1 and http://www.example.com/store2. All these urls are “generated” wrongly without the “sub-directory” and What should I modify in other make those urls work in the following ways, for example: