Results 1 to 7 of 7

Thread: 404 issues

  1. #1
    New user
    Join Date
    04-13-10.
    Posts
    9

    Default 404 issues

    I added to the .htaccess file:

    ErrorDocument 404 /404.html

    and created the 404 page, seen here: http://www.n-ccarpet.com/404.html

    However, the 404 isnt working. This is pretty standard stuff, am I missing something? Are 404s done a different way in Typolight?

  2. #2
    User PaoloB's Avatar
    Join Date
    06-19-09.
    Location
    Italy
    Posts
    238

    Default Re: 404 issues

    Hi

    on backend you must create a error page

    On the option of the page see the Page type. You must select 404 Page not found.
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  3. #3
    New user
    Join Date
    04-13-10.
    Posts
    9

    Default Re: 404 issues

    Thanks, setting the page type to 404 did make it work.

    I played around a little, and discovered the following:
    Setting page type to 404 made any non-existent _.html files trigger the 404. However, to get the 404 to be triggered for something like domain.com/eqwfegr (something that doesn't exist without the .html suffix), I still had to manually add "ErrorDocument 404 /404.html" to the .htaccess file, otherwise the 404 page was not triggered.

    All is working properly now, just mentioning this in case anyone else runs into this issue.

  4. #4
    User PaoloB's Avatar
    Join Date
    06-19-09.
    Location
    Italy
    Posts
    238

    Default Re: 404 issues

    Yes, it is correct

    in the .htaccess i add this

    ErrorDocument 404 /my-page-404.html
    ErrorDocument 403 /my-page-403.html
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  5. #5
    New user
    Join Date
    08-11-10.
    Posts
    20

    Default Re: 404 issues

    Do you have to add 'ErrorDocument 404 /my-page-404.html' within a specific section of the .htaccess file?

  6. #6
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: 404 issues

    The reason domain.com/eqwfegr doesn't auto-trigger the 404 page is because it's looking for a folder, not a page.

  7. #7
    New user
    Join Date
    08-11-10.
    Posts
    20

    Default Re: 404 issues

    Thanks Ben. Understood.

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
  •