sub domain
Permalink
I have created a duplicate of a site that was developed on the root domain.
I created a new database and user and installed C5 then copied files.
I made sure cache was off and cleared.
It worked fine, i just had the re-build sitemap as when i tried to login it kept jumping to root domain login, not sub. I also has to edit overides file to make it see the sub domain.
I then edited the home page on the sub, and to my dismay it seems to have changed the root domain site as well.
Its obviously not right even though i can see there are two different databases in PHP my admin.
The reason for the change is I'm trying to make a different language on the sub domain rather than building into the structure of the root domain.
Maybe Ive gone about this the wrong way. can anyone advise please?
I created a new database and user and installed C5 then copied files.
I made sure cache was off and cleared.
It worked fine, i just had the re-build sitemap as when i tried to login it kept jumping to root domain login, not sub. I also has to edit overides file to make it see the sub domain.
I then edited the home page on the sub, and to my dismay it seems to have changed the root domain site as well.
Its obviously not right even though i can see there are two different databases in PHP my admin.
The reason for the change is I'm trying to make a different language on the sub domain rather than building into the structure of the root domain.
Maybe Ive gone about this the wrong way. can anyone advise please?
.htaccess (pretty URLs)?
Thanks for suggestion.
I found it was getting confused with the file application/config/generated_overrides/site.php
In the site.php file, I had to change code so it was looking for the sub domain.
'canonical_url' => 'https://subdmain.xxxxxxx',
'canonical_url_alternative' => 'https://www.subdomain.xxxxxx',
Then i uploaded the latest database into PHPmyadmin using the new database i had already created. Also, made sure url redirection was off.
Seems to be working now!
I found it was getting confused with the file application/config/generated_overrides/site.php
In the site.php file, I had to change code so it was looking for the sub domain.
'canonical_url' => 'https://subdmain.xxxxxxx',
'canonical_url_alternative' => 'https://www.subdomain.xxxxxx',
Then i uploaded the latest database into PHPmyadmin using the new database i had already created. Also, made sure url redirection was off.
Seems to be working now!