Post
by butte » Mon Jan 27, 2014 11:57 am
Proofread it carefully -- if you got it working locally, then you just need to be sure where OC is on the server (from perspective of .htaccess). The .htaccess needs to be given a basedir, which will be either (a) the public or domain root (shown as /) or (b) the store's root in a directory (shown as /directory/ -- WITH the trailing /). That much can be the same on both machines. However, both / and /directory/ must reflect where OC actually is. Proofread it carefully. If OC is in the same position in or above the root, or instead above that in a directory, then how it is laid out, / or /directory/, should be the same. Bear in mind that on your local machine public_html/ or its equivalent may not be the same as on the public host, where, for example, you may have public_html/domainnamehosted/ as the effective root. Those two, for your .htaccess, are equivalent as /, provided that OC sits there. If OC sits above that, then that is where /directory/ starts. These are ordinarily equivalent: public_html/, www/, htdocs/, httpdocs/. They are publically accessible, and in terms of Apache are "aliases" for a publically accessible directory at a specific level in a host's directory structure. If OC is more than one step up from the root /, then its position is /directory/directory/directory/ or the like.