PDA

View Full Version : domains and subdomains pointing to specific folder



aleborg
02-02-2004, 02:22 AM
How can the user change what folder a subdomain or a domain is pointing to?
If a user ads the subdomain forum.domain.com, a folder "forum" is created, but what if he want's it to point to the folder "board" instead, how does he do that?

ProWebUK
02-02-2004, 07:02 AM
Easiest way would probably be to use .htaccess or a meta redirect:


.htaccess:

Redirect /somedir/page1.htm http://your.domain/somedir/page2.htm


meta refresh:

<html>
<head>
<meta HTTP-EQUIV="Refresh" CONTENT="0;URL=http://newlink.com">
</head>
<body>
</body>
</html>


Chris

aleborg
02-02-2004, 07:43 AM
That wasn't what I ment, I want to be able to change directory for the subdomain and domain in apache, not a redirect.

DirectAdmin Support
02-02-2004, 10:17 AM
Hello,

That isn't really possible, even with the custom httpd.conf feature.. I think you'd need to manually add your own virtualhost to the main httpd.conf then (before the Include lines).

John

ProWebUK
02-02-2004, 10:55 AM
I was actually thinking about this earlier! with the subdomain feature have options:

Subdomain: [______].domain.com
Path: /domain.com/[______]

The usefu thing allowing that, is they could have:

/domain.com/subdomainname/

and have subdomain only, or they could have:

/domain.com/public_html/subdomainname/

which comes very useful, we often use it to allow:

domain.com/forum
forum.domain.com without any additional work, and it makes a neat feature at the same time :)

obviously, the path has to be limited so they must be /domain.com/* without having access to the httpd.conf :) which keeps things safe at the same time as offering options!

Chris

aleborg
02-02-2004, 11:05 AM
Our current controlpanel has this feature, have a look at a testaccount in confixx:

https://www.kontrollpanelen.se/user/
username: web263
password: FB7zdwzy

Confixx has a nice layout and userfriendly interface and LOTS of bugs. But there are some features I like in confixx that I would like to se in DA...

gumiak
01-09-2007, 05:59 AM
still nobody knows how to do it

my users need that urgent :(

metziel
03-07-2007, 08:29 PM
Bump. I would very much like this feature, as I have a number of subdomains and I don't enjoy cluttering up my root folder with all the directories, especially when the subdomains redirect.

I would appreciate a resolution to this issue.

nobaloney
03-08-2007, 09:44 AM
Does it need a resoluition? To me it's more like a feature request.

I see it as a real maintenance nightmare; at some point everyone's going to lose track of what subdomain points to which folder, and it's going to take logging in to the control panel to figure it out.

I don't see any compelling reason to need the feature.

Should I move the thred to the Feedback & Feature Requests?

Jeff