so that /about.html can be loaded using URL /about
but I would also like to redirect(browser redirect, not internal rewrite) /about.html to just /about
(delete PHP/HTML extension from URL)
How to achive that, any help is appreciated
And also you have to use either try_files {http.regexp.strip.1}.php {http.regexp.strip.1}.html in the file directive or even better like I wrote in my reply
just use try_files {path} it’s simpler and it works the same way
The file matcher implicitly does try_files {path} if you don’t give it any options
Also FYI if you try to use regexp results inside the same matcher, you might get inconsistent results. The order the matchers will run is kinda random. It would just be luck based whether they run in the correct order.