URL redirection problem and 404 Page not working

:wave: Hello,

I would like to inform you of two issues:

First issue: I am trying to redirect a page under URL path with UUID parameter to my login page, but it displays “page not found” even though the redirection page exists.

Second issue: I have created a 404 page and set it as the 404 page, but it does not appear in the event of a 404 error.

Has anyone else encountered this problem?

Hi @FlorianH :wave:

Based on your screenshot, it seems you are creating some sort of infinite loop, redirecting your 404 page (source page) to your 404 page (target page).

There’s no need to create a redirection in this panel unless you want to show the 404 page when the user types in the URL of a page that still exists.

As long as you have created a page in WeWeb with the slug 404, your users will be automatically redirected to that page when they try accessing a page that doesn’t exist.

Does that make sense?

Here are the user docs to create a 404 page in WeWeb:

1 Like

A small note: if you run the app on your own web server (like nginx or apache), you will have to configure the 404 page on the server yourself. So for example on nginx something like:
server {
listen 80;
server_name localhost;

root /usr/share/nginx/html;
index index.html;

location / {
    try_files $uri $uri/ =404;
}

error_page 404 /404;

}