404 Page Error Using Folders

Issues related to previewing and publishing your web site.
Post Reply
Vit
 
 
Posts: 59
Joined: Thu Sep 12, 2019 9:21 am

404 Page Error Using Folders

Post 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)
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: 404 Page Error Using Folders

Post by Pablo »

This has nothing to do with the application.
This is a server related issue.
Vit
 
 
Posts: 59
Joined: Thu Sep 12, 2019 9:21 am

Re: 404 Page Error Using Folders

Post 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)
Vit
 
 
Posts: 59
Joined: Thu Sep 12, 2019 9:21 am

Re: 404 Page Error Using Folders

Post 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
Post Reply