Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,341
    Thanks
    260
    Thanked 32 Times in 31 Posts

    403 html vrs 403 shtml

    Hi, i have a custom error page set for my deny access as 403.html

    I have noticed recently in my error log that file not found 403.shtml

    So i created the file 403.shtml with the same content as my html file so i have both in there now.

    I dont understand why it would be looking for shtml not html, i guess i dont understand the difference, should i have both?

    my other pages work fine 401,500 and they are html (not shtml) so is 403 special for some reason that it has to be shtml?

    Thanks
    Last edited by durangod; 08-07-2012 at 02:31 AM.

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,480
    Thanks
    0
    Thanked 635 Times in 625 Posts
    .shtml pages allow server side includes whereas .html pages don't (unless you override the definition).

    for example:

    <!--#include virtual="header.html" -->
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,341
    Thanks
    260
    Thanked 32 Times in 31 Posts
    Yes i understand basically how ssi works, and yes i do have ssi set up and i do use it. But you lost me, i dont know what that has to do with the 403 file, shouldnt it be just like the others 401 and 500, which are html.

    Why would there need to be a special 403.shtml in addition to the 403.html
    Last edited by durangod; 08-07-2012 at 05:25 AM.


  •  

    Posting Permissions

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