Process Flow - Trailing slash normalization
Request URL Received
Check if URL ends with '/'
Final Response Sent
The server checks if the requested URL ends with a slash. If yes, it redirects to the same URL without the trailing slash using a 301 redirect. Otherwise, it serves the URL as is.