# URL redirection problem and 404 Page not working

**URL:** https://community.weweb.io/t/url-redirection-problem-and-404-page-not-working/7456
**Category:** How do I?
**Tags:** weweb
**Created:** [March 7, 2024, 6:26pm UTC](https://community.weweb.io/t/url-redirection-problem-and-404-page-not-working/7456 "2024-03-07T18:26:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![FlorianH](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/florianh/32/7137_2.png) [@FlorianH](https://community.weweb.io/u/FlorianH)
#### Post date: [March 7, 2024, 6:26pm UTC](https://community.weweb.io/t/url-redirection-problem-and-404-page-not-working/7456/1 "2024-03-07T18:26:29Z")

</div>

👋 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.

 ![2024-03-07 at 19-18-01](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/c781bbf24760f289b23b34c246fa54c742c8e15f.png)

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.

 ![2024-03-07 at 19-24-21](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/224b4ef2f5698c8b7986129aca91d3294585e950.png)

Has anyone else encountered this problem?

---

<div class="post-metadata">

### Author: ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)
#### Post date: [March 8, 2024, 1:28pm UTC](https://community.weweb.io/t/url-redirection-problem-and-404-page-not-working/7456/2 "2024-03-08T13:28:01Z")

</div>

Hi @FlorianH 👋

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:

> **[Create 404 page | WeWeb documentation](https://docs.weweb.io/pages/404-page.html)**
>
> Learn how to create a 404 page in WeWeb

---

<div class="post-metadata">

### Author: ![stephan1](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@stephan1](https://community.weweb.io/u/stephan1)
#### Post date: [April 1, 2025, 6:36pm UTC](https://community.weweb.io/t/url-redirection-problem-and-404-page-not-working/7456/3 "2025-04-01T18:36:33Z")

</div>

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;

```

}
