hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : sub-domains
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

sub-domains

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-13-2000, 06:01 PM
KapTin Kirk KapTin Kirk is offline
Newbie
 
Join Date: Dec 2000
Posts: 8
Question

Is there a way, through the use of Perl, PHP, .htaccess or whatever, to create sub-domains that are not simply redirects.

So for example, something.mysite.com would have URL's such as something.mysite.com/page/index.html instead of having something.mysite.com redirect to mysite.com/something and then having the URL as mysite.com/something/page/index.html

Hopefully I explained that alright without confusion

Reply With Quote


Sponsored Links
  #2  
Old 12-13-2000, 06:14 PM
BC BC is offline
Web Hosting Master
 
Join Date: Apr 2000
Location: 80,000 feet under the sur
Posts: 2,736
Welcome aboard

Yes, there are subdomain scripts written in either Perl or PHP - check out http://www.hotscripts.com for some of them.

Make sure your host has 'wildcard DNS' enabled for this feature to work. Most Alabanza hosts do not have this feature, but most VDI hosts already have subdomains enabled.

__________________
My 2 Cents.... (or is that 2.2 cents inc. GST...?)

Have a think about this : Programming is like sex. Make a single little mistake, and you'll be supporting it for the rest of your life.

Reply With Quote
  #3  
Old 12-13-2000, 10:11 PM
KapTin Kirk KapTin Kirk is offline
Newbie
 
Join Date: Dec 2000
Posts: 8
thanks

essentially I wanted to be able to create sub-domains that were not redirections (or at least, the url doesn't change) but acted like real sub-domains.

Anyway, yes my host has wildcards and I would like to be able to have URL's such as sub.domain.com/dir/file.html or sub.domain.com/dir2/dir453/file.html etc. instead of sub.domain.com redirecting to domain.com/sub

Is that at all possible through wildcards, or do I need a host that supports actual sub-domains. Thanks again

Reply With Quote
Sponsored Links
  #4  
Old 12-14-2000, 12:35 PM
DaveC# DaveC# is offline
Web Hosting Guru
 
Join Date: Oct 2000
Posts: 258
Do it like this:

Create virtual host subdomain.mydomain.com with a document root pointing to the dir you want the pages to be called from then in your zone file add

subdomain IN A youripaddress


Reply With Quote
  #5  
Old 12-15-2000, 03:23 AM
Félix C.Courtemanche Félix C.Courtemanche is offline
Web Hosting Master
 
Join Date: May 2000
Posts: 587
If your host has the mod_proxy module installed in his apache distribution, you can transparently forward any request to a specific *real virtual* sub domain to any files / directory on your server.

To your visitors, it will appear that they are viewing a sub domain, but to the server it will be serving the files as if they were called the correct way.

All of this can be done from a little .htaccess file in your root web directory.

I don't have the specific code with me right now, but if you need to, I can easily find it out for you and give you an example.

__________________
Félix C.Courtemanche · webmaster@can-host.com
Can-Host Networks · http://www.can-host.com
web«cp Control Panel · http://webcp.can-host.com

Reply With Quote
  #6  
Old 12-15-2000, 04:15 PM
KapTin Kirk KapTin Kirk is offline
Newbie
 
Join Date: Dec 2000
Posts: 8
I'm going to be moving from smarthosting to HostWay in the next month. Hostway says that they offer third level domains, but not sub-domain to directory pointers or sub-domains. Would it still work with them? I've already been confused to high hell with "third level domains"... isn't it the same as sub-domains?

Reply With Quote
  #7  
Old 12-18-2000, 06:29 PM
megmaster megmaster is offline
Newbie
 
Join Date: Dec 2000
Posts: 6
Sub-Domains.....

Apache's mod_rewrite directive allows you a LOT of options and freedom in this area, IF your hosting company allows it. You'll need to have wildcard domains enabled in your .hosts file and then setup the proper mod_rewrite directives to rewrite the domain.

mod_rewrite allows the web server to serve files from different locations than the URL would indicate without changing the displayed URL. This is just one of it's feature. We use it here to block the offsite linking of files greater than 15k. This helps prevent bandwidth theft.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Today in Domains: Startups, Exact Match Keyword Domains and Facebook Typosquatters Blog 2013-05-01 16:35:20
50a15ecd-fab4-4084-be23-53a245a799a0 Listing 2013-03-05 18:23:24
Tucows Adds 100-Plus new Domain Extensions to OpenSRS System Web Hosting News 2011-12-22 18:29:09
Web Host 1&1 Launches Domain Registration Mobile App Web Hosting News 2011-11-02 21:05:55
New on WHIR TV – Karla Hakansson of Verisign Talks .com and .net Branding Blog 2011-08-25 20:23:37


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?