Skip to content

Commit

Permalink
versuch 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mcilurzo committed Aug 29, 2024
1 parent 50c9f4f commit 481b19a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,14 @@ server {
port_in_redirect off;
autoindex on;
error_page 404 /error/index.html;

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

location ~* /redirect/.*/index\.html$ {
if ($redirect_url) {
return 303 $redirect_url;
}
}

# Optional: 404 oder eine andere Fehlerseite, falls keine Weiterleitung gefunden wird
return 404;
}
location / {
try_files $uri $uri/ =404;
}
}

0 comments on commit 481b19a

Please sign in to comment.