Page 1 of 1

How to create multi store on subdomain without Cpanel?

Posted: Mon Dec 05, 2016 12:04 am
by danbrun
Hi

I'm trying to create a multi store shop (using OC 2.3.2) and I've followed a bunch of different tutorials and all of them are quite straight forward if your webhost is utilizing CPanel. My provider (one.com) doesn't have CPanel and the only way I generate a subdomain is to create a new folder into the root directory. There is no problem accessing the subdomain which I have verified by putting a simple .html file into the subdomain folder.

From the tutorials I can understand that the subdomain shall point to the directory were OpenCart is located, but I just don't know how to do it since CPanel isn't available for me? My webhost suggested to use the .htaccess and 301 redirect, but that's just a simple redirection and didn't help much. Is there anyone who know how I should set up the .htaccess or what more I can tell my webhost to do for me? Maybe there is someone using CPanel who can post the .htaccess for the subdomain here?


I also found this method and tried is as well:
------------------------------------------------------------
Add the following to your “.htaccess” file:

#Modification start by Igor Chishkala. DO NOT DELETE OR SUB STORES STOP WORKING
RewriteCond %{REQUEST_URI} !^/your-folder-name-here/.*$
#Modification finished by Igor Chishkala. DO NOT DELETE OR SUB STORES STOP WORKING

Next, create a new file inside the folder and name it “index.php.” Here is a structure of this file:
<?php include('../index.php');
------------------------------------------------------------

But this only runs the index.php from the base domain and detects that there is nothing installed in subfolder and you will get the error message:

The requested URL /install/index.php was not found on this server.

As far as I've understood, you shouldn't need to add any files to the new subdomain folder so I suppose this isn't the correct way to do it?

Best Regards,
Daniel

Re: How to create multi store on subdomain without Cpanel?

Posted: Mon Dec 18, 2017 10:46 pm
by kenny_1892
Hi, did you find a solution to this problem? I'm also with one.com and are finding the exact same issue.

Re: How to create multi store on subdomain without Cpanel?

Posted: Tue Dec 19, 2017 2:20 am
by simonpieman
Hi guys, A sub domain is normally set up not by adding a folder but by changing the records where the domain is registered.
A folder would be like www.yourdomain.com/foldername a subdomain would be subdomainname.yourdomain.com
Ordinarily there are a bunch of tools to set this up with the domain registrant and it will have a field for the IP address of the sever. which will be the same one as the main site. Note -> if the site is on a 'shared server' with other people hosting on your server then you will need to ask the host to mke sure it redirects to YOUR site, else it will probably default to the root. Assuming your site is in the root it should then goto your site and be accessible.
Hope it makes sense and helps -> and I didnt miss read.

Re: How to create multi store on subdomain without Cpanel?

Posted: Sat Jan 13, 2018 4:00 am
by ilmojk
kenny_1892 wrote:
Mon Dec 18, 2017 10:46 pm
Hi, did you find a solution to this problem? I'm also with one.com and are finding the exact same issue.
Have someone found solution for this?
My host don't know how to do this..

Re: How to create multi store on subdomain without Cpanel?

Posted: Sat Jan 13, 2018 4:05 am
by kenny_1892
Is your host one.com?

One.com told me they support opencart but not multi-store and recommend not using the feature. They could not really give me an answer as to why it wasn't supported.

Re: How to create multi store on subdomain without Cpanel?

Posted: Sun Jan 14, 2018 12:43 am
by labeshops
Best solution - change to a decent hosting company. Sounds like one.com doesn't want to give you control of basic functions like setting up sub-domains which is crazy.

Re: How to create multi store on subdomain without Cpanel?

Posted: Sun Jan 14, 2018 3:42 am
by ilmojk
kenny_1892 wrote:
Sat Jan 13, 2018 4:05 am
Is your host one.com?

One.com told me they support opencart but not multi-store and recommend not using the feature. They could not really give me an answer as to why it wasn't supported.
Oh, Sorry, mine is not One.com.
I have mine own server with ubuntu 16.04.
At this moment i have 2 different domain and 2 different opencart installation, in my server. I don't know how to configure to make multistore.