regarding redirection using subdomains

raghuveer

New member
Joined
Jun 22, 2003
Messages
3
Location
kakinada, india
hai

regarding the subdomains:

---------
I want to know how to redirect a subdomain to a particular http address,

we can do this in cpanel control panel by using the "setup redirection" feature, but here in this direct admin control panel ,I am not able to understand how to do that.
I think for folders in the web space root folder, we can achieve this easily, but for long http addresses, how to do this

please tell me.


---------------------------

regarding the virtual domains:

--------------

please tell me some info about virtual domains

what is the purpose of virtual domains and how can we use them

---------------

thanks in advance
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
raghuveer said:
hai

regarding the subdomains:

---------
I want to know how to redirect a subdomain to a particular http address,

we can do this in cpanel control panel by using the "setup redirection" feature, but here in this direct admin control panel ,I am not able to understand how to do that.
I think for folders in the web space root folder, we can achieve this easily, but for long http addresses, how to do this

please tell me.
Im not sure if this is possinble *yet* with DirectAdmin, i will leave support to confirm that.

raghuveer said:
regarding the virtual domains:

--------------

please tell me some info about virtual domains

what is the purpose of virtual domains and how can we use them

---------------

thanks in advance
Virtual domains are basically when multiple domains are hosted on a single web server.

Regards
Chris
 

DirectAdmin Sales

Administrator
Staff member
Joined
Feb 27, 2003
Messages
400
User Panel --> Advanced Tools --> Site Redirection

If your subdomain is sub.domain.com, you would enter '/sub' for the Local URL Path and then enter the full http address you want to redirect to.

Mark
 

raghuveer

New member
Joined
Jun 22, 2003
Messages
3
Location
kakinada, india
hai

I did the way it was posted here, but not able tounderstand why I am not getting the url I want.

I am getting the folllowing message in the status bar

website found. waiting for reply....
the page is not beiong loaded.

I will tell now what I want to redirect.

here in the e-mail menu, we will have webmail feature to check pop3 e-mail accounts directly using browser na with out the help of e-mail clients,
I had created a sub-domain webmail.securitywonks.org for this purpose.

for:
Local URL Path : /webmail
destination url: http://www.securitywonks.org/webmail

please tell me is this right and if not, what t do to redirect a subdomain to get webmail feature through it

thanks
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
im not sure of the directory structures for DA, although the PATH is usually something like var/www/html/

so you will most likely require:

var/www/html/webmail

as your local path

Chris

EDIT:

just checked and it looks like you will need:

/domains/public_html/webmail

^ for directadmin :D
 
Last edited:

loopforever

Verified User
Joined
May 30, 2003
Messages
298
Location
/home/admin
The simpiliest way to do what you're trying to do, would be to do the following:

- Add a subdomain via DA called "webmail"
- Throw an .htaccess file in the public_html directory of this subdomain, with the following contents:

Redirect index.html http://www.domain.com/webmail

Be sure you remove the index.html file from the public_html directory first.

This will redirect anyone visiting webmail.domain.com to domain.com/webmail.

Have fun :).
 

kcook

New member
Joined
Jun 23, 2003
Messages
4
Location
uk
The simpiliest way to do what you're trying to do, would be to do the following:

- Add a subdomain via DA called "webmail"
- Throw an .htaccess file in the public_html directory of this subdomain, with the following contents:

Redirect index.html http://www.domain.com/webmail

Be sure you remove the index.html file from the public_html directory first.

This will redirect anyone visiting webmail.domain.com to domain.com/webmail.
I wanted to do this too, and eventually discovered that the following works in a .htaccess file in the subdomain's directory,
ie in /domains/www.domain.com/public_html/webmail/ (there isn't a public_html directory for the subdomain)

Redirect / http://www.domain.com/webmail

using 'index.html' didn't seem to work.


Keven.
 
Top