Results 1 to 12 of 12

Thread: How can I put up two sites?

  1. #1
    Member macampbell's Avatar
    Join Date
    Jan 2002
    Location
    united kingdom
    Posts
    415

    How can I put up two sites?

    Hello all,
    I am using a hosting service that gives me 50M. I have uploaded my site successfully. My question is: Can I upload another site and have both running from the same webspace? If so how do I go about it? please advise.

    Mac
    cami

  2. #2
    Senior Member neverwhere's Avatar
    Join Date
    Sep 2003
    Location
    Deep within my mind
    Posts
    578
    well. You registered one domain name (i.e. www.nukelearpower.com) so you get one domain name access. You cant (to my knowledge) have two in that context, but you can have www.mainsite.com and www.mainsite.com/secondarysite

  3. #3
    Member macampbell's Avatar
    Join Date
    Jan 2002
    Location
    united kingdom
    Posts
    415
    I think that is what I want, how do I put the contents, will there be two index pages? do I put the other one into its own folder?
    Thanks for response.
    cami

  4. #4
    Senior Member neverwhere's Avatar
    Join Date
    Sep 2003
    Location
    Deep within my mind
    Posts
    578
    On the server your main site has an index.html or .php or whatever in it. Create a subfolder with its own index.html (or what ever you use) and then when you goto www.mainsite.com/secondarysite it will link to the index.html. You have to have index.html or it wont have anything to goto when it opens that folder.

  5. #5
    Member macampbell's Avatar
    Join Date
    Jan 2002
    Location
    united kingdom
    Posts
    415
    Thanks Neverwhere it is so easy when you know how. I did it and it worked.
    mac
    cami

  6. #6
    Senior Member neverwhere's Avatar
    Join Date
    Sep 2003
    Location
    Deep within my mind
    Posts
    578
    give us a link so we can take a gander

  7. #7
    Member macampbell's Avatar
    Join Date
    Jan 2002
    Location
    united kingdom
    Posts
    415
    I have started work on the other info bit, which may have four pages.
    main site other info
    I am now on the right track, the site is for my friend, Thanks again.

    Mac
    cami

  8. #8
    Senior Member neverwhere's Avatar
    Join Date
    Sep 2003
    Location
    Deep within my mind
    Posts
    578
    long as you dont link the main page to the secondary page people might never know!

  9. #9
    Member macampbell's Avatar
    Join Date
    Jan 2002
    Location
    united kingdom
    Posts
    415
    If I did want to link the main page to the secondery page, how would I do it? and what is the advantage/disadvantage?

    mac
    cami

  10. #10
    Senior Member neverwhere's Avatar
    Join Date
    Sep 2003
    Location
    Deep within my mind
    Posts
    578
    well.. you would just link it like you would to any other web page
    Code:
    <a href="http://www.yoursite.com/secondarysite">Other Page</a>
    As for advantages vs disadvantages ... that depends on if the first pertains to the second... or if they are for two different people. One person might not like links they dont know about on their page...

    Oh, and having two pages with different target audiences = more bandwith usage

  11. #11
    Junior Member ubes's Avatar
    Join Date
    Nov 2003
    Location
    the Netherlands
    Posts
    20
    Basically your webfolder behaves just the same as a folder on your desktop. Say you create a folder [root] on your desktop with a bunch of html files in it. Then you create a shortcut to one of those html files on your desktop. This will open the html file in your browser. The links on that page open up the other html files in the folder.

    You can create a subfolder in the [root] folder, say [subpages], and create a bunch of additional html pages in that folder. You can either open these files by creating a link on one of the files in de [root] folder or create a shortcut to those files directly.

    A URL (e.g. http://www.example.com/aFile.html) behaves like a shortcut to a remote site/system. Folders on a remote system behave the same way as they would on a local system. A webroot is nothing more than a starting point for the webserver to look for a requested file/page.

    A site placed in a subfolder, as proposed in the posts above, is therefore nothing more than a bunch of subpages that can only be opened by a direct request.

    Basically, the proposal above is not different from creating a huge site and organise the files in subfolders. The only difference is the page design probably.

    Not that I disagree with the proposed solution; It works doesn't it?

  12. #12
    Member
    Join Date
    Sep 1999
    Location
    New Hampshire, USA
    Posts
    347
    another idea would be to get a second domain name and have it redirected to the path containing your second/sub site. this way

    www.domain1.com

    and

    www.domain2.com

    could point to different paths on the same site.

    You would have to register two domain names for this to work and have the second domain name point to a path off of the original IP.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •