I have a company ABC and I registered ABC domains in different countries.
I have developed www.abc.com
website and this main site has many languages subfolders:
www.abc.com/en with hreflang=en (lang=english, geotargeting=none)
www.abc.com/fr with hreflang=fr (lang=french, geotargeting=none)
www.abc.com/es with hreflang=es (lang=spanish, geotargeting=none)
etc.
for each subfolder, the right language file is loaded with the static content.
Now I have other ccTLDs:
www.abc.fr with hreflang=fr-FR (lang=french, geotargeting=France)
www.abc.es with hreflang=es-ES (lang=spanish, geotargeting=spain)
www.abc.com with hreflang=en-US (lang=english, geotargeting=united states)
etc.
Each country TLD-site has same language hyperlinks pointing to the generic site www.abc.com/xx xx=lang code
.
All sites are implemented in PHP accessing the SAME MySQL DB displaying the dynamic content.
In order to minimize the maintenance costs, I'd need all domains to refer the same subset of common files, only some files are specific to one ccTLD (ex: .css file).When a user types www.abc.es
the Spanish language is set, the CSS is set (for ex.) and www.abc.es
address loads the common subset of files and displays basically the same content as www.abc.com/es
.
So, finally my question is: should .htaccess be used to make this implementation? What are the main commands? Is there an alternative way to implement this?