Note: This only applies to customers on server host1.internetguruhosting.net
There is no automatic create a sub domain function on our control panels, so you have to do it manually. It is a little tricky, but once you get the hang it it is pretty simple.
DNS wild card is activated so you wont need to create a new DNS entry.
You have to setup a server rewrite configuration that redirects requests for the subdomain to the subdomain folder. This script sits in the root folder of your site in a file called .htaccess .
. Login to Usermin (https://host1.internetgruhosting.net:20000/)
. Select the Applications tab.
. Select Apache Options Files
. enter /home/<your domain>/html into the Add options for: field and select Add options for: This will create the .htaccess file and throw you in to the configuration screen for this file (You only need perform step 4 once. On return visits you should get a clickable link reading /home/<your domain>/html
. select Edit Directives and paste in
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} subdomain.domain.com
RewriteCond %{REQUEST_URI} !subdomain/
RewriteRule ^(.*)$ subdomain/$1 [L]
and press Save
(to add additional sub domains repeat the last 3 lines – don’t forget to add it to your DNS first)
RewriteCond %{HTTP_HOST} newsub.domain.com
RewriteCond %{REQUEST_URI} !newsub/
RewriteRule ^(.*)$ newsub/$1 [L]
)
John Parnell Pierce says
This is really old info and should be ignored.