I have two applications on my root directory and im trying to keep them both there but they both have index.php files as a directory index. Is there a way to rename or change one of them so they dont overlap. Or have them both coexist together.
These are the apps im trying to keep under the same directory.
You can’t without modification to both applications. Why not?
Both application use htaccess rewrite to map a request to, say,
to execute
DOCROOT/thisPath/.htaccesswhich rewrites the request to do an internal redirect toDOCROOT/thisPath/index.phpwhich then acts as a central clearing house to processSomeFutherContext.For the two to sit in the same
thispath, you would need to integrate their.htaccessfiles, have two clearing house entries, say indexwolf.php and indexshop.php, and be able in the .htaccess through some regexp to decodeSomeFutherContextso that you can dispatch to the right one.However, setting them up so that one is based on
http://yourdomain/wolfcms/and the other onhttp://yourdomain/shop/is trivial, just follow the install guide for both and install opencart inDOCROOT/thisPath/shop/changingRewriteBasein its.htaccessfile toRewriteBase /shop/as it instructs.BTW,
Addendum
If your hosting provider supports a wildcard subdomain mapper (most do by default, so either check your HSPs FAQs or post back here who your hosting provider is), then you can use subdomain e.g.
wolfcms.yourdomainto separate it from your shop, by adding the following to your docroot.htaccessimmediately after theRewriteBase /:You then store WolfCMS in
Docroot/wolf, and its .htaccess is inDOCROOT/wolf/.htaccesswith aRewriteBase /(not RewriteBase /wolf).