Click to See Complete Forum and Search --> : Non WWW. internet space


thunder7s
12-01-2008, 04:49 PM
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,

felgall
12-01-2008, 07:00 PM
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

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

thunder7s
12-02-2008, 07:34 AM
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!

kristingish
12-02-2008, 09:32 AM
couldn't this just be done by using a private network?

felgall
12-02-2008, 02:50 PM
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.