www.webdeveloper.com
Results 1 to 5 of 5

Thread: Non WWW. internet space

  1. #1
    Join Date
    Dec 2008
    Posts
    2

    Non WWW. internet space

    Hi,

    I am trying to establish as to whether it is possible to set up a server to host non-"www" websites.

    For example, if I want to create an internet site which is e.g. http://abc.mysite.co.uk

    From this site above, it would NOT be possible to navigate to any www prefixed site, but only to other abc prefixed sites

    thanks,
    Last edited by thunder7s; 12-01-2008 at 04:50 PM. Reason: correction

  2. #2
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    There is nothing special about www. - it is just a sub-domain just like any other with the only difference being that some hosting set up to automatically park it on the main domain.

    To redirect any www. sub-domain to the main domain simply add the following to the .htaccess file

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.abc\.mysite\.co\.uk$ [nc]
    RewriteRule ^(.*)$ http://abc.mysite.co.uk/$1 [R=301,L]
    Stephen

  3. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks felgall for your reply.

    Let me go at it from a higher level - i'm almost at a proof of concept stage for a project to see if its achieveable.

    Say, for example, that due to some security restrictions a user cannot access any www site. They have an internet connection and the only "area" they will be permitted to access is abc.anysite1 The emphasis being on the "abc" prefix/URL Protocol.

    This territory is fairly new to me as my background is in software development in Oracle Apps - so bear with me if my terminology is out.

    I'll try to give an example from a requirements point of view:

    A group of workmen are given the task of building a bridge. They are given no training and have only have their previous collective experience to work with.
    Each workman is provided with a laptop with an internet connection. As this is a task that prevents them from seeking help from outside of the group, all "www" access is disabled. So the workmen are unable to access www.google.com or any www hosted website.
    A new internet environment is created under an "abc" prefix where the workmen can create their own internet page, eg. http://abc.workman1, http://abc.workman2 etc. The workmen then have this "abc world" in which they can discuss their ideas in order to get the bridge built.
    No one from outside of the group of workmen have access to this set of sites unless they apply to the administrator for a user-id and password to the area.
    This then essentially becomes a private "World Wide Web" or "abc" , accessable to only those given access to it, which holds any forums, blogs, reference pages created by either the administrator or a workman only. The importance of their inability to access the "real" www is that they are therefore unable to see any content which they should not be seeing if you catch my drift.

    This probably sounds ridiculous, but go with me on this one for a while!

  4. #4
    Join Date
    Jun 2008
    Location
    Schaumburg, IL
    Posts
    16
    couldn't this just be done by using a private network?

  5. #5
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    You set that sort of thing up as an intranet and run it from your own computers. You would not have any internet connection for it at all unless you are just going to use the internet to provide VPN access for everyone on the intranet to be able to access your server from remote locations.
    Stephen

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles