Web Hosting Forums

Results 1 to 7 of 7

This is a discussion on need help! (sub-domain) in the Hosting Talk & Chit-chat forum
when i delete a sub-domain, going to the old sub-domain url address will lead to the main website. is there anyway to give a 404 ...

  1. #1
    Loyal Client
    Join Date
    Dec 2001
    Posts
    42

    need help! (sub-domain)

    when i delete a sub-domain, going to the old sub-domain url address will lead to the main website. is there anyway to give a 404 not found error instead of redirecting to the main website?

  2. #2
    alexodin
    Guest
    this is how Apache works or at least how they configured it.
    any request to "un-real" subdomain will bbe forwarded to your main domain.

    besides, you didnt specify web page, why should you expect 404 error?

  3. #3
    Loyal Client
    Join Date
    Dec 2001
    Posts
    42
    thx for the response.

    there are some sites i've seen that when you try to access a false/non-existant page, it'll give you a "cannot find page"-type error. i was actually hoping that would happen.

  4. #4
    hell no, we won't go!
    Join Date
    Sep 2002
    Posts
    1,093
    Originally posted by mislan
    thx for the response.

    there are some sites i've seen that when you try to access a false/non-existant page, it'll give you a "cannot find page"-type error. i was actually hoping that would happen.
    That is true here too, but not if you type subdomain.domain.com (which will redirect to your subdomain.

    For example, <http://akjslkjlkj.mabase.com/> will send you to your main site, but <http://akjslkjlkj.mabase.com/blah.html> gives you the error...

    Post number 600, go me!
    - Colin

    I like food.

  5. #5
    Loyal Client
    Join Date
    Dec 2001
    Posts
    98

    Forbidden

    Mislan,
    I left the subdomain intact, and removed the 'index.html'. When I typed in the subdomain, I got a 'Forbidden' screen. That may suit your purpose better than going back to your main domain?
    Aso

  6. #6
    Loyal Client
    Join Date
    Dec 2001
    Posts
    42
    thx for the responses.

    thx grumpydog! that will definitely help me out.

  7. #7
    alexodin
    Guest
    dont forget, that if you have 1st package - you have only 10 subdomains.

Bookmarks

Posting Permissions

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