Post by danbrun » Mon Dec 05, 2016 12:04 am

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

Newbie

Posts

Joined
Sun Dec 04, 2016 11:14 pm

Post by kenny_1892 » 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.

New member

Posts

Joined
Wed Aug 04, 2010 6:11 pm

Post by simonpieman » Tue Dec 19, 2017 2:20 am

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.

Go the All Blacks!


Active Member

Posts

Joined
Thu Jul 02, 2015 8:58 am
Location - NZ - Auckland

Post by ilmojk » Sat Jan 13, 2018 4:00 am

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..

Using now Opencart 2.1.0.2


New member

Posts

Joined
Wed Jan 25, 2017 4:10 am
Location - Finland

Post by kenny_1892 » 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.

New member

Posts

Joined
Wed Aug 04, 2010 6:11 pm

Post by labeshops » Sun Jan 14, 2018 12:43 am

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.

Running Opencart v2.2 with multi-stores from http://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by ilmojk » Sun Jan 14, 2018 3:42 am

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.

Using now Opencart 2.1.0.2


New member

Posts

Joined
Wed Jan 25, 2017 4:10 am
Location - Finland
Who is online

Users browsing this forum: No registered users and 11 guests