Page 1 of 1

insert domain name code

Posted: Mon Nov 24, 2014 1:51 pm
by oceanude
Hello,

Is there a SmartCJ tag like <!--DOMAIN--> I can insert in my templates so that it outputs mydomain.com:

For example:

http://<!--DOMAIN-->/scj/sitemap.php
outputs:
http://mydomain.com/scj/sitemap.php

Thanks.

Re: insert domain name code

Posted: Mon Nov 24, 2014 1:59 pm
by admin
Hi,

Code: Select all

<?php print $_SERVER['HTTP_HOST'] ?>