directing a domain to a folder?

  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Posts: 318
  • Loc: ChicagoLand, IL, USA

Post 3+ Months Ago

I have a 1and1 server and have about 5 or 6 domains that all point to that one server, and 1 that is DNS'ed to an Unflux server. If I wanted to take one of those domains and point it to a subfolder without additional text in the URL - is that possible?

Like on my server I would have a folder called "example1" - and instead of having to type http://www.domainname1.com/example1/ to view the index page - can I somehow DNS "domainname1.com" to the example1 folder?

Then all you would have to do is type http://www.domainname1.com and you would get the index page from the example1 folder...
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

I am not sure I follow you entirely, though you cannot direct via DNS to a 'folder' -- different layer.

You can set up a virtual host to use a specific dir for a specific URL, or you can rewrite a specific URI to a specific URL.

Again, I am not sure I even understand, however given my limited understanding of your example you should be able to rewrite any request to domainname1.com to the /example1 directory.
Alternatively, you could set up a virtual host to have any request to domainname1.com point to that specific directory.

Why do I have the feeling I am muddying the waters even further?
  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Posts: 318
  • Loc: ChicagoLand, IL, USA

Post 3+ Months Ago

Yeah - I don't understand what/how to do what you described. I just want to have folks type in domainname1.com and they are viewing the index page in the domainname1.com/example1/index.htm

Maybe I am making it harder than it needs to be - I don't know, I just want a nice easy URL to get to that folder.
  • CartikaHosting
  • Proficient
  • Proficient
  • CartikaHosting
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse

Post 3+ Months Ago

Quote:
Yeah - I don't understand what/how to do what you described. I just want to have folks type in domainname1.com and they are viewing the index page in the domainname1.com/example1/index.htm

Maybe I am making it harder than it needs to be - I don't know, I just want a nice easy URL to get to that folder.


May I ask why you wouldnt move the content from example1 folder to the root domain directory?
  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Posts: 318
  • Loc: ChicagoLand, IL, USA

Post 3+ Months Ago

Because I have another site there with a different URL. With my hosting plan I'm allowed 5 free URLs in the package price - but I don't want them all pointing to the same root content. I want to give each URL its own unique index page.
  • CartikaHosting
  • Proficient
  • Proficient
  • CartikaHosting
  • Posts: 455
  • Loc: Wishing I was in Kicking Horse

Post 3+ Months Ago

Hi Alan - ok, Im really confused - which, can easily happen may I add :)

so - you want:

domain1.com to resolve to domain1.com

but, you want domain2.com to resolve to domain1.com/example1, but maintaining the name domain2.com?

IF Im reading this correctly, then just use 2 domains and forget about the whole redirecting issue - if Im mistaken, my apologies and and Ill go away and practise my cognitive skills :)
  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Posts: 318
  • Loc: ChicagoLand, IL, USA

Post 3+ Months Ago

Ok, let me try again, perhaps I'm overlooking something simple, or I'm not explaining correctly.

I have one hosting package. This one hosting package included five domain names when I signed up, so I have:

http://www.fallofautumn.com
http://www.lastlibs.com
http://www.autumns-ashes.com
http://www.indieDOS.com

Now, click on any of those and they all take you to the same index page on my server space. But here's what I want to set-up:

http://www.fallofautumn.com - is correct in the page it points to, it can stay pointing to http://www.fallofautumn.com/index.php

but

http://www.lastlibs.com I would like to point to the page at http://www.fallofautumn.com/lastlibs/index.htm

and

http://www.autumns-ashes.com should point to the page at http://www.fallofautumn.com/autumns-ashes/index.htm

and

http://www.indieDOS.com should point to the page at http://www.fallofautumn.com/indieDOS/index.htm

This way I can effectivly use my 5 domains to be five unique sites instead of them all pointing to the same site. Hopefully that will clear it up. Sorry if I'm missing something simple here, I can design 'em but I'm not so hot on the tech side of it.
  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Posts: 318
  • Loc: ChicagoLand, IL, USA

Post 3+ Months Ago

I'm so dumb - it was an option buried in my Control Panel - I just found it. Couldn't find it yesterday, but I found it now. It allows me to point any of my domains to an subdirectory I have on the server.

THanks guys. I think that's what you guys were telling me to do all along. :)
  • peterstannard
  • Beginner
  • Beginner
  • peterstannard
  • Posts: 40

Post 3+ Months Ago

You could use "Add on" domains in cPanel.
  • Tom the Great
  • Expert
  • Expert
  • User avatar
  • Posts: 727
  • Loc: B.C., Canada

Post 3+ Months Ago

Are you hosting the domain names with 1and1?

I am pretty sure you can go in the 1and1 control pannel, then go to the domains section, and with your domain you can edit it to a certain location.
I don't have my 1and1 user/passwords with me, so I can't give more info, but am pretty sure you can do it.
  • chris_j
  • Newbie
  • Newbie
  • chris_j
  • Posts: 12

Post 3+ Months Ago

Alan Lastufka wrote:
I'm so dumb - it was an option buried in my Control Panel - I just found it. Couldn't find it yesterday, but I found it now. It allows me to point any of my domains to an subdirectory I have on the server.

THanks guys. I think that's what you guys were telling me to do all along. :)

Great.
You resolved the problem. :)

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.