PDA

View Full Version : regarding redirection using subdomains


raghuveer
06-22-2003, 02:03 AM
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
06-22-2003, 04:24 AM
Originally posted by raghuveer
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.

Originally posted by raghuveer
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
06-22-2003, 10:25 AM
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
06-23-2003, 03:44 AM
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
06-23-2003, 04:09 AM
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

loopforever
06-23-2003, 06:13 AM
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 :).

raghuveer
06-26-2003, 09:07 AM
hai

thanks for the good replies
thanks for the informative and useful methodologies

thanks

best regards
raghu

kcook
07-12-2003, 04:10 AM
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.