php - .com / .se / de - loading same main folder. htaccess -
i have 4 domains, each different extension (.com / .de / .se / .no)
i want domains load same main website folder on server, depending on extension language change on site.
the domain names not same. eg.
ostemad.dk cheeseflavour.com fromage.fr
what question here? not need .htaccess style files @ all. files should avoided anyways wherever possible: considerably slow down server, error prone , hard debug. use real server configuration section instead: more clear , secure.
you create 1 virtual hosts per domain , assign same document root each.
for language switching can either rely on phps superglobal variables , switch depending on request host, or, more elegant, set environment variable inside virtual hosts definition means of apaches mod_setenvif.
Comments
Post a Comment