Is there a way to use php to display different text if the domain extension for viewing the same file is the same. like mydomain.com and mydomain.se is pointing to the same file but I want different text to display on each one.
Something like: <?php if(preg_match('/\.se$/', $_SERVER['HTTP_HOST'])) { ?> Text for Swedish <?php } else { ?> Text for everywhere else <?php } ?> PHP: