Questions tagged [custom-error-pages]

In web programming, a custom error page is used to replace the stock (often detail-less) error pages when the server cannot find the requested resource (i.e. status 404) or encounters an error (i.e. status 500). Use with a programming language or web server tag

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

NGINX server: save custom error pages in own folder

I'm setting up a new nginx server and in most tutorials the people just drop their custom error pages into the project folder. I wanted to collect them in an own folder, so it is easier to manage if ...
Marcel's user avatar
  • 13
0 votes
0 answers
20 views

Nuxt 2 SSG 404 page returns 200 from server

I generated my website with Nuxt 2 SSG. I created my error page in layout/error.vue as specified in documentation <template> <div> <h1>Error page</h1> </div> </...
Robert Veselý's user avatar
0 votes
1 answer
47 views

How to add a new route to the existing Flask app

I am newbie with Flask and trying to add a new route to Lama Clearner. Existing routes work perfectly in my localhost but I added the below code @app.route("/get_ping") def get_ping(): ...
KingHodor's user avatar
  • 537
-1 votes
1 answer
99 views

Create Tomcat custom error pages, but not in ROOT

Can I put my generic error folder not in the /ROOT folder, but somewhere else? I'm running a local Tomcat server (9.0.37) with multiple applications, similar to the folder structure below tomcat/ ...
Erik's user avatar
  • 229
0 votes
0 answers
33 views

NextJS [v13.5.3] - shows default 404 page instead of a custom 404 page

I have a custom error page which is showing if a user goes to the non-existing page path and/or when a user is looking for a non-existing product. Everything worked as expected on a "nextjs":...
phoenix's user avatar
0 votes
1 answer
91 views

Next.js custom error component doesn't show

I'm having problem with Next.js custom error component. I followed documentation and made 404.js component in my /pages but it looks like it isn't recognized, it still shows me default error page. ...
Freedom Fighter's user avatar
0 votes
0 answers
34 views

Display 404 error code when URL doesn't exist from angular route

When I search some random URLs from my angular application, in the network tag of any browser for that particular URL I am are status code as 200 OK. Instead when URL doesn't exists, I want to ...
Karthik's user avatar
-1 votes
2 answers
206 views

Why I am getting 404 Page Not Found in my NextJS 13 app?

I have been learning Next.js 13. I have encountered an unusual error when I start the app for the first time. The pages are shown properly. But if I close it and reopen the application again, it ...
Mehul Parekh's user avatar
-1 votes
1 answer
33 views

Do I need a 404 for a onepage site?

Should I create a 404 page for one page websites, or can I just redirect the 404 error to the one and only home page? What is the best practice? Etc.
quasi's user avatar
  • 401
0 votes
0 answers
18 views

Every pages are shown 404 page on WordPress

Now, I am building a WordPress site. After creating a new page, click preview button, the 404 page are shown. I 'am working on WordPress 5.9.7 and using a child theme of Twenty Twenty-Two. And I set ...
Vajilo Toram's user avatar
0 votes
0 answers
19 views

Images not getting displayed on Apache server

Error Screenshot I built a website using the Django framework and hosted it on an Apache server. The images are not getting displayed for some reason. It is giving me a 404 error (please see the ...
Rand al'Thor's user avatar
0 votes
0 answers
41 views

NextJs app giving Page not found after deployed but locally it works perfectly

As the title says, I recently deployed my app using Railway. I used railway before since am familiar with it and its easy to manage it. When I deployed my next js app I am having the page not found ...
beni14's user avatar
  • 1
0 votes
0 answers
43 views

How can I use ejs in my node application?

My folder structure: ├── routes │ ├── userRoutes.js │ └── authRoutes.js ├── views │ └── index.ejs └── index.js The index.js file: import express from "express"; import morgan from &...
Dhyan Rai's user avatar
0 votes
1 answer
41 views

Not found page in NextJs 13.4

I have 2 questions. But, first, in my layout.tsx above {children} I also have a custom component <Navbar />. I created a 404 page but on that page I also have that navbar. Is there any way to ...
andei95's user avatar
  • 28
0 votes
0 answers
66 views

Infinite Middleware Calls when Using not-found.tsx in Next.js 13

I'm experiencing a strange issue with my Next.js project, which is running on version ^13.4.19. I've implemented the "not-found.tsx" page in my "/app" folder, but I'm encountering ...
mbelleri's user avatar
0 votes
0 answers
27 views

React Vite gives 404 Error on internal Page reload [duplicate]

I have deployed my code into IIS Server. The problem is that when i click the navigation it works fine. But when i refresh the internal page like this http://url.amazonaws.com:5002/Prefrences they ...
Talha Abbas's user avatar
0 votes
0 answers
18 views

not able to access a page in code Igniter

I created a new static page in code igniter whose url is http://localhost/erostrading.in/static-page. But whenever I try to access it it redirects me to http://localhost/erostrading.in/404_override ...
Manpreet Singh's user avatar
-1 votes
1 answer
92 views

React Vite website 404 error after deployment

I created a website using React and Vite. On localhost, it navigates to different pages without any problems. However, when I deploy it to Vercel or any other hosting provider, I get a 404 error when ...
Muhammad Faeez Shabbir's user avatar
0 votes
0 answers
33 views

ERROR 404 WHEN I TRY THIS LINK http://localhost:8080/swagger-ui.html

Im trying to document my spring boot proyect, but when i enter the link http://localhost:8080/swagger-ui.html, the page is white and there is only a 404 error. Im using java 8 and spring boot 2.7.0 ...
Pastelito 7u7's user avatar
0 votes
0 answers
22 views

All Pages and Post are redirecting to 404 Not Found in wordpress

I am using wordpress, I have created 3 pages and 4 posts on my website. I am able to access the front page but the rest of the pages are showing 404 not found, Same for post also. If I use some logic ...
Naren Verma's user avatar
  • 2,227
0 votes
3 answers
88 views

No Longer Navigation Works After Automatic Redirect From 404 Page to Home Page Using next/router and useEffect()

I'm facing an issue with next/router. I made a '404 Page' and set it up to send clients back to the home page router.push('/') after some 3 seconds. However, when clients return to the main page, they ...
Aquib Alam's user avatar
0 votes
2 answers
36 views

404 page with requesting url in php

I'm handling 404 error as follows - // in .htaccess ErrorDocument 404 /404.php It works nicely. But I would like to display the original URL he requesting. I am trying the following in my 404.php - ...
s.k.paul's user avatar
  • 7,159
0 votes
0 answers
9 views

Go to another page through the Omnibox on the top bar of the browser

I want to go to another page of my project from the top bar of the browser, but it gives me a 404 error Is the problem with my codes? Or did I give the wrong address? I put a photo of the directory ...
sadegh's user avatar
  • 1
0 votes
0 answers
17 views

Unable to return custom not-found page when using next.js v13.4 custom layouts

I have been using RootLayout for all my pages and not-found.jsx works perfectly but I switched to custom Layouts to achieve different UIs and default 404 page is now showing instead of custom not-...
Victor's user avatar
  • 1
0 votes
0 answers
136 views

how to fix 404 error on shopware 6.5.4.0 for custom controller on custom plugin

im working on a shopware 6.5.4.0 project, im building custom plugin. in there exists a custom controller as below <?php declare(strict_types=1); namespace Nst\Storefront\Controller; use Shopware\...
tee's user avatar
  • 39
2 votes
2 answers
527 views

Next.js not-found.js file showing a blank page instead of a 404 message

I am using Next.js v13.4.19 for a practice application, using the app router mode. The not-found.js page present in the app folder is not rendering a 404 page when a non-existing route is accessed, as ...
S Anwar's user avatar
  • 83
0 votes
0 answers
132 views

When Upgrade to DSpace 7.6, the tomcat give 404 Error

I have installed DSpace 7.5, now I want to upgrade it to DSpace 7.6. So I have followed the instructions in the documentation as below: checked the versions of java and ant and maven ..etc , all were ...
Munira Ayad's user avatar
0 votes
1 answer
134 views

NextJS 13.4.7 (app routes) Dynamic routes 404 status code

I'm currently building a NextJS 13.4.7 application with dynamic routes and a Headless cms coming from Contentful. All routes are open to use, as you can see in the screenshot below. We want to get ...
Ivo Brands's user avatar
0 votes
1 answer
25 views

When working with spring MVC there is a 404 error

When working with spring MVC there is a 404 error. Can anyone help me please. Where is the mistake in my project? There are no errors when starting the server. Tomcat version 10.1.11 Intellij IDEA ...
Maksym's user avatar
  • 1
0 votes
1 answer
60 views

Cloudfront 405 error not displaying custom error page

I created custom error page on Cloudfront with HTTP error code 404 and 405. I pointed the response page path to private/index.html hosted in s3 bucket. I managed to display a custom error page for ...
AllenC's user avatar
  • 2,764
0 votes
0 answers
307 views

Wordpress Error "Nothing Found" caused by the Polylang plugin

The website is on CMS WordPress, and periodically, after making any edits (whether it's a change in a post/page, updating a plugin, widget, or theme file), the "Nothing Found" error occurs. ...
Legalgrounds's user avatar
0 votes
1 answer
25 views

made up an URL in wordpress and it return 404 not found

I change the URL of my website in Wordpress to a domain that I invented and now I can't access the original URL. It return 404 not found. I know I made a big mistake, is there anyway that I can change ...
Linh Chi's user avatar
1 vote
1 answer
34 views

.htaccess Ban bot only on url with params

Google is visiting the page with parameters, i need to block it. Give page 404 on all pages with param Look like site.com?q=text or site.com/?q=text but not block if link just site.com I wrote this ...
AC1D's user avatar
  • 248
0 votes
0 answers
115 views

NextJS not found page throws Error: Objects are not valid as a React child

I have this not found page: (Like on https://next-intl-docs.vercel.app/docs/environments/error-files) import Button from "@/components/buttons/button"; import { useTranslations } from 'next-...
PixelPage's user avatar
0 votes
1 answer
47 views

React, ho to redirect to error pag when id is wrong?

I would like to redirect to the error page when the id is not correct. here it is the code of my component : import React from "react"; import PropTypes from "prop-types"; import ...
Carmen Adrien's user avatar
1 vote
1 answer
147 views

Downloading multiple files in a directory using wget

I would like to download multiple images in a directory using wget. Here's an image, https://pkmnbinder.com/images/PAL/001.png I can download this using Wget "https://pkmnbinder.com/images/PAL/...
Huichelaar's user avatar
0 votes
0 answers
7 views

Error Customize errorhandling in Web.Config [duplicate]

in asp.net webform when I want to customize the error page I use the following comment : <customErrors mode="on" defaultRedirect="defaultError.aspx"> <error statusCode=...
Ali Majidi's user avatar
1 vote
0 answers
37 views

NextJs 13 custom not-found.tsx not working when deployed to vercel

I'm using NextJs 13 with the new not-found.tsx file. Everything is working fine locally, but when I deploy the app to vercel, any 404 errors are just returning the standard 404 | This page could not ...
alketraz's user avatar
  • 181
-1 votes
1 answer
124 views

How to fix 404 error when reload page in Github Pages [closed]

I read 2 previous similar questions on this website but nothing helped me. Please help me I have an error 404 on Github Pages when I reload my page, on live server everything is okay. https://...
Богдан Гапоненко's user avatar
0 votes
1 answer
36 views

How to solve page not found in django

im having a problem with page not found. Page not found error In that pic you can see there is only the admin page, but not the calc page im looking for. Project name is sharedlibrary. Here is the ...
Václav's user avatar
0 votes
1 answer
184 views

Nextjs: show not-found page when handle in middleware using app dir

I have a nextjs using app dir. The app suport multi language: /[lang]/<router>. The [lang] is reqiured for all route and only have some language. I want to validate the [lang] is correct. If not,...
kan's user avatar
  • 189
0 votes
0 answers
28 views

My PWA application needs to load (embed) another application, when the PWA gets started

I have a PWA application running at localhost:{port1} and when this PWA is up and running it needs to load the contents from another application(app1) that is up and running at localhost:{port2}, i.e; ...
mani's user avatar
  • 1
0 votes
1 answer
64 views

Adding a trailing slash to a non-existing directory displays the 404 page without its css file

(I was having trouble coming up with a good question description, sorry!) I have a 404.php page setup, and it is also defined in my .htaccess file. THE PROBLEM: If you type in https://www.mentat.com....
SunnyOz's user avatar
  • 543
0 votes
0 answers
32 views

Unable to Load View File in Controller - Getting Error 404

I am working on a PHP MVC application, and I'm facing an issue where the controller class is unable to load the view file, resulting in an Error 404 page. I have checked the file paths and ensured ...
Saboor Hamedi's user avatar
1 vote
1 answer
182 views

Need help regarding deploying a typescript based node server to vercel

I am constantly getting a Code: NOT_FOUND error on my server running endpoint. Its mostly a configuration setup issue for a typescript based node server. Its been quite long I am struggling this issue....
Pranshu_Taneja's user avatar
0 votes
0 answers
24 views

react.js website and when moving page and refresh cant find react router page and show 404 error

i have deployed and host on github pages my website - moshedavidovbarber.hair that it the url name you can go and see the problem when i click on one of the navbar option to go another page everything ...
Shay Shemesh's user avatar
0 votes
0 answers
52 views

Injecting React Helmet on a 404 Not Found page?

I was wondering if you should include a React Helmet component on a 404 Not Found Page that i made. My app.js looks like this: function App() { return ( <HygraphProvidor> <div className='...
pgm-jefdenie's user avatar
0 votes
0 answers
17 views

On every product page, I get a product-specific png;base64 error like this

On every product page, I get a product-specific png;base64 error like this, but I couldn't solve my problem. I'm waiting for your help. it crashes to 404 error https://example.com/vare/glat-gas-...
SerkanixTR's user avatar
0 votes
0 answers
18 views

Why does my website's 404 error page redirect to the homepage instead of showing the actual error message?

My php website 404 page redirects to my homepage(whenever i type something wrong its directly take me to the homepage) .htaccess code below. # php -- BEGIN cPanel-generated handler, do not edit # Set ...
Sanjay's user avatar
  • 1
0 votes
0 answers
19 views

ASP.NET MVC HTTP Error 404.0 - Not Found The resource

i keep get this error when the path is already exists in the web server i can't find any solution enter image description here i tried to make a button so the user can have access to the edit action ...
Alaa _Idi's user avatar

1
2 3 4 5
14