SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2004
    Location
    England
    Posts
    588
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Error pages and .htaccess

    Just upgraded to VPS from shared - stumbling around a whole new world of Apache and Plesk.

    I'd previously used an htaccess file in the main directory to deliver site-wide error pages. This now doesn't work - and I've read it's better for the server to use the default error handling.

    My httpd.include lists a bunch of em, like...
    ErrorDocument 403 /error_docs/forbidden.html
    ErrorDocument 404 /error_docs/not_found.html

    Can I edit the httpd.include and rename the files, to use .php instead of .html?

    Or is there a way to be using one or more .htaccess files as before - some of my directories are members only and had additional .htaccess files to allow only members to view, and I'm wondering if they'll still work.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,680
    Mentioned
    20 Post(s)
    Tagged
    3 Thread(s)
    gull,

    The thing about a shared server is that you can NOT edit httpd.anything. The most control you have is over .htaccess but the DocumentRoot should be valid for the entire site (Addon Domains will have to repeat for their own domain - it's a "pointer" thing).

    Yes, your "other" .htaccess should continue to work - assuming that the shared host allows you to modify your .htaccess and has retained that name.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2004
    Location
    England
    Posts
    588
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.


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
  •