I know there is a Pretty URL option but I don’t want this
my site
I want it show 404 page when the url with html extension or slash For example :
保良局甲子何玉清中學 Can access
保良局甲子何玉清中學 404
保良局甲子何玉清中學 404
I know there is a Pretty URL option but I don’t want this
my site
I want it show 404 page when the url with html extension or slash For example :
保良局甲子何玉清中學 Can access
保良局甲子何玉清中學 404
保良局甲子何玉清中學 404
@PLK1984-003 I don’t believe you can do this with standard Netlify redirects.
You may be able to do so by implementing your own custom edge function.
See the edge function documentation here:
https://docs.netlify.com/edge-functions/overview/
Here’s a recent example from a community member where they wanted to return a 404
for requests to any route containing .php
.
You may be able to quickly adapt it to match your requirements.