Page 1 of 1

404 Page Error Using Folders

Posted: Thu Sep 12, 2019 9:37 am
by Vit
404 Page Error Using Folders
// default version 15.07 is used
 
1. There is a site where page 404 is installed using software
2. If we enter an incorrect address, then page 404 opens normally
3. The project uses folders
4. Folders also have pages
// menu navigation works fine
5. When we are at
site.domain / folder / page and enter the wrong page, then 404 opens simply with text.
And the navigation on this page 404 is already working incorrectly.
All links try to open up along the path with the addition of the folder in which we are.
site.domain / folder / index (there should not be a folder)

//I used google translator when writing this text. Sorry for the mistakes, if any)

Re: 404 Page Error Using Folders

Posted: Thu Sep 12, 2019 9:38 am
by Pablo
This has nothing to do with the application.
This is a server related issue.

Re: 404 Page Error Using Folders

Posted: Sun Sep 15, 2019 3:58 pm
by Vit
Pablo wrote: Thu Sep 12, 2019 9:38 am This has nothing to do with the application.
This is a server related issue.
I think you're right.
The .htaccess file writen:
ErrorDocument 404 /404.php

This is probably why the page does not display correctly when the link is in the folder (site/folder/link)

Re: 404 Page Error Using Folders

Posted: Sun Sep 15, 2019 4:09 pm
by Vit
Vit wrote: Sun Sep 15, 2019 3:58 pm The .htaccess file writen:
ErrorDocument 404 /404.php
ErrorDocument 404 https://mysite.domen/404.php

the problem is resolved. Now everything works as it should :D