aaPanel_Kern
ยทยทยท
location / {
if ($request_uri ~ ^/(.*).html$)
{ return 302 /$1; }
try_files $uri $uri/ $uri.html $uri.html?$args; }
ยทยทยท
...
error_page 404 /404.html;
...
I've found the issue,
I was going to have 2 conditions, but they seems to have issue when putting both together
Removing the html extension
example.com/blog.html โ-> example.com/blog
Having redirect to error 404 page
example.com/abx is not a valid page
It will redirected to 404 page
Do you have any method which can make both works at the same time?