Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on Custom 404 page on a subdomain in the Shared & Semi-Dedicated forum
I want to create a custom 404 (file not found) page on a subdomain (it's also a multihosted domain). I've got a custom 404 for ...

  1. #1
    Loyal Client
    Join Date
    May 2002
    Location
    Wisconsin, USA
    Posts
    568

    Custom 404 page on a subdomain

    I want to create a custom 404 (file not found) page on a subdomain (it's also a multihosted domain).

    I've got a custom 404 for my main domain which I set up through the control panel.

    Can anyone tell me what commands I should put in the .htaccess file in the subdomain's folder so that the 404 page will work properly for the subdomain?

    I'm assuming by putting that command in the subdomain's folder it will also work when someone visits the site using the multihosted domain name, right?

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    ErrorDocument 404 /path/to/page.html

    The path is relative to the document root of the site, so if your subdomain is public_html/subdomain and your 404 file is in a directory called errors, you'd use something like

    ErrorDocument 404 /errors/404.html

    or, if its in the root of your subdomain

    ErrorDocument 404 /404.html

    If you don't put the / at the begining, subdirectories inside your subdoman may have trouble with the error page.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    Loyal Client
    Join Date
    May 2002
    Location
    Wisconsin, USA
    Posts
    568
    Thanks Jason. I appreciate the help.

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
  •