Hi again,
I have had some problems in regards to duplicating one site into several with the original being https://aboriginalculturalimmersions.com.au the duplicate sites bluetongue1.com and aboriginalworkshops.com.au. There is also firstnationeducation.com.au which shares some content.
The sites are for the same business but aimed at different markets. They are completely different brands.
Each site I have changed the written content on the main sections to suit the brand names and mix the content up and have made changes the images data as well along with dropping the images from one in preference to a new slider.
I utilise SmartSlider3 which gives me plenty of room to make these changes.
I have changed the slugs on many of the menus per site, changed the names of pdf files available on the front end and the inside SEO meta data.
I have noticed in Google console I am getting stung on a lot of un indexed pages and also there where some links on the sites that threw errors with CORS blocks and there where many redirect problems causing the main domain to not index.
All the sites have their own databases
I researched and added the below with my domains and changed the config.php to suit. This fixed up the indexing of the main domain but many others still are having problems
#### Force HTTPS://WWW and remove trailing / from files ####
## Turn on rewrite engine
RewriteEngine on
# Remove trailing slash from non-filepath urls
RewriteCond %{REQUEST_URI} /(.+)/$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ https://www.example.com/%1 [R=301,L]
# Include trailing slash on directory
RewriteCond %{REQUEST_URI} !(.+)/$
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+)$ https://www.example.com/$1/ [R=301,L]
# Force HTTPS and WWW
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR,NC]
RewriteCond %{https} off
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
I did not have CORS turned on any site which I am now implementing. His there any advice on best practice here for duplication and allowing them to share some data. The contact sections and some other parts need to remain generic across all sites for continuity.
In global configuration --> Server --> Enable CORS "YES"
Header add Access-Control-Allow-Origin - *
Header add Access-Control-Allow-Headers - Content-Type,X-Joomla-Token
Header add Access-Control-Allow-Methods