Should URLs end with slashes?

Should URLs end with slashes?

URLs should not end with slashes

With and without a slash “/” is a different URL.

Especially relative URLs,

If you access https://www.yourdomain.com/about with a info, it will link to https://www.yourdomain.com/info.

And if you access https://www.yourdomain.com/about/ (which generally returns the same content), the info, will link to https://www.yourdomain.com/about/info.

But the root directory with without/is the same

For example, http://www.yourdomain.com and http://www.yourdomain.com/ are the same.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *