• Hello, hopefully someone can help. I wish to install WordPress and Opencart within the root so that the shop URL’s will not be affected as the only other option would be a sub domain. On the plus side, WordPress folders do not conflict with those of Opencart… so my question is would it be possible to install both in the root without major complications? The issue is pretty much only the index.php file for each, how could I get around this? Any help greatly appreciated?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You have to decide what you want to control the root. Trying to merge the two index.php files could be problematic.
    You could use a Rewrite in the htaccess file to check for cart variable and redirect if present, but WordPress has it’s own (large) set of rules for that, so it doesn’t make sense to do it the other way.

    You could use a plugin under WordPress instead of a stand-alone cart. That way, they don’t conflict.

    WordPress can be installed in a folder, but still control the root.
    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
    But it still needs the index.php in the root.

    Thread Starter boogieman20

    (@boogieman20)

    Hello Joy, thank you for the information and assistance.

    I had planned on updating the index.php file on the WordPress installation rather than the opencart install due to issues that could arise with cart checkout etc. So is it possible to edit the wordpress index.php to index2.php ? If not would I be able to install the wordpress in a folder and use HT access to direct people to the website first? Essentially I am trying to avoid changing the URLS on the shop hence why I want them both in the same directory with the website loading first and the shop accessible via the website menu. Hope this makes sense?

    Kind regards

    I understood that, but “website loading first and the shop accessible via the website menu” doesn’t mix with “avoid changing the URLS on the shop”.

    If the URL of the shop is myshop.com, then the cart should show the shop at that address, not be a menu item there. If that is the “website”, it’s not the shop. You have to choose which software controls that URL. That’s why it would be good to use a WP plugin to control the shop.

    Thread Starter boogieman20

    (@boogieman20)

    Ah I see what you mean, what I meant about the menu was simply that the website (wordpress) allows me to add custom URL’s so simply meant i could add a link for people to access the shop via a custom menu url eg ‘shop now’ myshop.com/category/product and direct them to categories within the shop that way.

    Do you know of a particular plugin which would work as you’ve mentioned above? Sorry to be a pain and greatly appreciate your help!!

    Do you freelance Joy?

    There is a large number of shopping cart plugins in the repository. I have not analyzed them since my last client’s shopping site (after which I swore off doing shopping sites). Each needs to be evaluated with your needs in mind, and only you know what your needs are, so it’s difficult to hire that out.

    A very popular one is Woocommerce, but all I know is the name and it’s by Automattic.

    Yes, I freelance, but cannot solicit work from the forums.

    Moderator bcworkz

    (@bcworkz)

    Hi boogieman20 – Joy is a very active, extremely knowledgeable resource in these forums and we know she would not accept work through these forums. Conversely, you must not ever solicit work either. Doing so in topics will cause them to be closed. We must do so to protect members from possible scams. By far the vast majority here are extremely honest and well meaning, but this is the Internet, we can never know for sure.

    Seeing as you didn’t actually solicit work yet, I’ll leave this open for now. For your own safety, do not ever accept offers of paid help in these forums.

    FWIW, a folder WP installation doesn’t have to have its index.php in root, provided the site URL leads to the WP installation folder. But then that requires changing URLs. It’s possible to do .htaccess rewrites to redirect traffic to the correct place, but there needs to be something definitive the rewrite rules can use to decide where to send requests. The usual WP criteria is if no such file or directory exists on the server, it’s a WP request.

    Thread Starter boogieman20

    (@boogieman20)

    Hello bcworkz

    My apologies, rest assured I will follow the rules. And thank you both greatly for your help and advice, much appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Directory HELP’ is closed to new replies.