tsimtung.com 尖東網絡
Check Domain
Hotline: (852) 27855838
Sign up now!
Contact us / Leave a message
Email: info@tsimtung.com
Paypal ID: support@tsimtung.com

服務分類

電郵網頁寄存
WordPress CMS
電郵推廣服務 EDM
虛擬伺服器 (VPS/VDS)
伺服器租用
伺服器托管
網站程式/網上商店
網頁設計
域名註冊
上門電腦支援/中小企I.T.外判
分銷計劃
Sub-Domain Setup
Q: How to configure a sub-domain to work?

A: Before the explanation, we need to remind you that sub-domain name is an advanced fucntion. It is only recommended for advanced users. If you are beginner, please consult more information about sub-domain name from reference books.

And please be noted that the sub-domain name service is an optional service which is only available for those who had applied.

Here are the steps:

1) Create a folder for one of sub-domains in your root directory (ie, web) and name it as your sub domain name, and then create a file called htaccess.txt in "web" by Notepad which contains the following content:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^test.yourdomain.com$
RewriteCond %{REQUEST_URI} !^/test/
RewriteRule (.*) /test/$1
Example:
Domain Name: example.com
My Sub-domain name will be: test.example.com
Folder for the sub-domain name: test
RewriteEngine On
RewriteCond %{HTTP_HOST} ^test.example.com$
RewriteCond %{REQUEST_URI} !^/test/
RewriteRule (.*) /test/$1

Then upload the htaccess.txt via FTP to the "web" directory, and rename its file name htaccess.txt into .htaccess

All your sub-domain name website files will be placed on the folder you have created, on above case, the sub-domain name: test.example.com website content should be placed on the folder called test.

Cautions:
1) The .htaccess MUST place in the "web" directory.

2) The syntax "RewriteEngine On" DO NOT need copy again in further sub-domain name settings.


Now your sub-domain name should work.



立即申請 如有查詢,歡迎致電 : 27855838, 27855839, 27855843 或 以電郵聯絡我們 : info@tsimtung.com
 
廣告看板
廣告看板
廣告看板
廣告看板