Subdomains are easy to set up but tricky to get working smoothly.
Basically any folder HTML page or even a media file page (no . file extensions allowed) can be a subdomain of your site all you need to do is create the folder and create a index file in it or just create the HTML page
The folder's index page the file or HTML page can then be accessed as
http://sub.site.xtgem.com
Click this link to open a subdomain of this site
sub.syntax.xtgem.com
Subdomains can be multi level
Click this link to open this HTML page as a multi level subdomain
default.xtgem.manual.syntax.xtgem.com?func=subdomain
Click this link to load an mp3 as a subdomain
mp3.syntax.xtgem.com
Click this link to load an image as a subdomain
image.syntax.xtgem.com
Click this link to download an image as a subdomain
image.syntax.xtgem.com?__xt_download=1
There are two ways to code for a subdomain
The first method uses the <base>
tag in the <head>
area of the subdomain page or in the _headtags file of your main site as this is still automatically included
This tag makes all relative links on the subdomain page relative to the address specified in the tag
<base href="http://YOUR SITE.COM" />
You can then create the page in the subdomain folder using most of the building tools as normal
- Relative addresses are relative to the main site NOT the subdomain
- Links to other pages or files in the subdomain MUST use full http addresses including the subdomain
ie: http://subdomain.site.xtgem.com/folder/file
If you do not use the <base>
tag these rules apply
- Relative addresses are relative to the subdomain NOT the main site
- Links to pages or files in the main site MUST be full http addresses
ie: http://site.xtgem.com/folder/file
- _header _footer _headtags files will not work for the subdomain if they contain relative addresses
- Most of the addresses created by the building tool for links or images using the filebrowser will be incorrect when the page is viewed as a subdomain
These rules apply to all subdomains
- The _header _footer and _headtags files are still included from the main site
(_header and _footer can be switched off from the page options in the building tool headtags cannot be turned off)
- Your xtgem_template.css and global_stylesheet.css will still apply to the pages in your subdomain
You can upload a separate favicon.ico file which will be used when the page is accessed as a subdomain
just upload it into the subdomain folder you can also add a link to the favicon in the pages <head>
tags area
Note: The forum guestbook and chatroom functions will not work on subdomains
The blog function will work but will show the same blog as your main site
Xt:url function will only return correct urls for the subdomains index file if it is named in the url of the page
ie: http://subdomain.site.xtgem.com/index