Is it right to have query parameters right after the slash in the URL?

Im getting a 304 redirect from A to B :

Is B the correct form or is it a bad server?

+6
source share
1 answer

The URLs representing directories usually end in trailing slashes, but the URL itself is not a file system, so it is correct in both cases .

The trailing slash is almost certainly executed by Apache mod_dir . There are some points in the documentation why this is good practice. Although:

If you do not want this effect, and the above reasons do not apply to you can turn off the redirect ...

+4
source

Source: https://habr.com/ru/post/952983/


All Articles