Arrow-right Camera
The Spokesman-Review Newspaper
Spokane, Washington  Est. May 19, 1883

No need to add trailing slash

The Spokesman-Review

How do I correctly list a Web address?

People often debate whether or not Web addresses require the slash mark at the end.

As in http://www.mycompany.com/ news/ — is the slash needed or not?

The simple answer is no. This is called a trailing slash, and it was devised to distinguish between URLs that point to a directory (like http://www.mycompany.com/news/) and URLs that needed to point to a specific file within that address — as in www.mycompany.com/news/ news/calendar.php.

For sites where the address is for a top-level domain, the slash is totally unneeded. If you list a Web address without a slash, the browser will have no problem finding the main address.

If you add a slash on a basic Web address, your Web browser will first request a file with that name. When the server fails to locate a file by that name, the browser says, “OK, just open the main page at that address.”