Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently bought Gold hosting from GoDaddy (only to realise that my previously also from GoDaddy purchased GoogleApps domain can't be joined with this new account, but that is a different story..) and found out that they won't let me create "www" subdomain from their admin section.

I use other subdomains and serve the content for that subdomain from a folder with the same name. I am trying to keep things neat on ftp, and don't want people to be able to access subdomains as folders as they can now( = =
This is the folder structure:

 cgi         (folder)
 errors      (folder)
 cars        (folder)
 planes      (folder)
 boats       (folder)
 www         (folder)
 .htaccess   (file)
 php.ini     (file)
 index.php   (file)

In ideal what I am trying to achieve is this:
"" serves content from root (in this case index.php)
"" serves content from ./www
"" serves content from ./planes
"" serves content from ./cars
The thing is I don't have access to httpd.conf, I can only play with .htaccess (and php.ini :)) Is there anyone here, who could spare some knowledge? Spent hours on google already and still haven't found a solution is it even doable?

Edit 20101105
I will be using real domain name instead of from now on.
They made me do 301 redirect through their control panel which is not good enough for me (when you type in in your browser do you want to be redirected to and act like nothing happened?)
So I looked for the changes in '.htacces' and this is what the control panel generated for the 301 redirect:

rewriteengine on
rewritecond %{HTTP_HOST} ^$
rewriterule ^$ "http\:\/\/slashorg\.com\/www" [R=301,L] #4cd3e29401386

Is there a way to change this so it redirects "the server" instead of "the client". By that I mean that when you go to, Apache handles the requests, he looks up my '.htaccess' file and instead of serving content from ROOT directory it would serve content from '/www', but then doesn't tell the client(visitor) that the content is from /www, so the address in their browser won't change?

There must be a way, Drupal, Joomla, they all use this all the time, you go to when in reality the content is served from

share|improve this question

migrated from Nov 4 '10 at 11:58

This question came from our site for pro webmasters.

This is a server config question. Moving to SF. – John Conde Nov 4 '10 at 11:58
I agree with CJM and jgoldschrafe it appears to be limitations of the GoDaddy account that is setup, if they are not offering access to the httpd.conf then .htaccess will be your best bet. If that doesnt work ask the GoDaddy NOC if they edit the httpd.conf for you if that is allowed. – Nick O'Neil Nov 4 '10 at 12:49

This sounds like a question for GoDaddy themselves...

I have a windows web server (a Plesk-based VPS) and there are httpdocs (main 'www' site), httpsdocs (secure), and sub-domains folders all in the host route.

A previous host had a sub-domains sub-folder, and another one had one sub-folder per sub-domain (pretty much like you describe).

My point is that different hosts configure sub-domains in different ways, and the way you achieve what you want will directly depend on their preferred configuration and the privileges that they have granted you.

They will have handled this kind of query multiple times already, so why not just ask them how to achieve your aims within their environment.

share|improve this answer
Ok, so I called them, got connected to some girl. When I told her I would like to serve content for my website from www, subfolder she didnt understand, then put me on hold and after 5 minutes lead me throuch their control panel to set up a 301 redirect :D So I am afraid it will be faster to try to fix this with help of google and you guys. (Forgot to mention, she said there is NO other way to do this.) – nana Nov 5 '10 at 13:19
The problem is, deep in the bowels of GoDaddy there will be one or two techies who know what they are doing. It's difficult, but you can often find them if you persist. Of course, perhaps this is a sign you have outgrown GoDaddy? – CJM Nov 8 '10 at 13:57

I'm not sure how they have things implemented on the back end, but what you probably want is to deny access to those locations through an .htaccess in the root:

<Location /boats>
    Order deny,allow
    Deny from all
<Location /cars>
    Order deny,allow
    Deny from all
<Location /planes>
    Order deny,allow
    Deny from all

If each of those subdomains is treated as a separate virtual host, then your .htaccess should never take effect on them when accessed properly. If they do some funny rewriting stuff to emulate that functionality, though, you might run into some problems.

share|improve this answer
Than you! This would definitely solve part of my problem with them, but when I changed the .htaccess with what you suggested (after changing the foldernames) I only get server500 :( – nana Nov 5 '10 at 13:22
As described in my comment to CJMs answer, they made me do a 301 redirect through their control panel, so when you go to it redirects the browser to which is unbeliavable. These are the changes in .htaccess:<br> rewriteengine on rewritecond %{HTTP_HOST} ^$ rewriterule ^$ "http\:\/\/slashorg\.com\/www" [R=301,L] #4cd3e29401386<br> Is there a way to redirect the server instead of the client? I mean when you access to look at the .htaccess in ROOT folder and tell apache to look for content in the subfolder, not the browser? – nana Nov 5 '10 at 13:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.