Tariq84 Posted February 19, 2019 Share Posted February 19, 2019 (edited) Hello everyone! I need some help please... I want to create a subdomain for my website (PS 1.7.5) and copy all the files there and then do some theme modifications through custom.css files. But I need to keep the same database connected for the new subdomain and my main domain. Is this possible? Any ideas are appreciated. Edited February 19, 2019 by Tariq84 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted February 21, 2019 Share Posted February 21, 2019 I am pretty sure you're gonna have issues if you keep the database the same. Also, you can't really keep the url the same as they are de facto two different sites 1 Link to comment Share on other sites More sharing options...
Tariq84 Posted February 21, 2019 Author Share Posted February 21, 2019 Hi @NemoPS and thank you for the reply. Let me explain further: I have a PS website let's say xyz.com and it's running well so far. I want to add a subdomain OR a folder for another shop, let's say abc.xyz.com OR xyz.com/abc I want to create a duplicate of the database but keep it synced with thr subdomain or folder and I want to change things in the design. So basically I will have the main domain as is and the subdomain or folder connected to the same database but different custom.css files Link to comment Share on other sites More sharing options...
NemoPS Posted February 22, 2019 Share Posted February 22, 2019 I am not sure what you are trying to accomplish. Are you trying to do an A/B testing sorta thing? Or just create a dev site? Link to comment Share on other sites More sharing options...
majorcode Posted November 22, 2021 Share Posted November 22, 2021 On 2/19/2019 at 6:42 AM, Tariq84 said: Hello everyone! I need some help please... I want to create a subdomain for my website (PS 1.7.5) and copy all the files there and then do some theme modifications through custom.css files. But I need to keep the same database connected for the new subdomain and my main domain. Is this possible? Any ideas are appreciated. Tariq, have you solved your issue? I am having same issue and spent over hours to experiment but no success. Link to comment Share on other sites More sharing options...
JBW Posted November 22, 2021 Share Posted November 22, 2021 Same question here: Why do you want to keep same database? This is very risky for any testing purposes. Techically it probaly won't work as the shops (sub) domain is stored in the database, so I think without changing code you can have one only shop per DB (except multi-shop) Link to comment Share on other sites More sharing options...
majorcode Posted November 22, 2021 Share Posted November 22, 2021 6 hours ago, JBW said: Same question here: Why do you want to keep same database? This is very risky for any testing purposes. Techically it probaly won't work as the shops (sub) domain is stored in the database, so I think without changing code you can have one only shop per DB (except multi-shop) I agree that it is risky indeed, but in my case I do not have issue if the database is different and keep it separate on sub-domain but my main concern is design, i want same design for my sub domain, i tried all options, none worked, even i created new database and imported the main domain database into that new database for sub domain it did not work as well. Any thoughts from you? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now