![]() These URLs are treated exactly the same and it doesn’t matter which version you use. Trailing slashes after the domain name don’t matter Whether you choose to use a trailing slash or not is more of a personal preference than anything. Serverless systems don’t even host files on your server.ĭifferent URL structures may be treated differently. The URL is a record stored in a database. These days, URLs in most systems aren’t pointing to files. With individual files, you’d have the file name and no trailing slash on the end. So the content would come from say /page/index.html but /page/ would be shown to users. A folder would indicate there were more files and you’d typically have an index file (index.html, index.php, etc.) where the content of the page would load from. In the past, a folder would have a trailing slash and a file would be without the trailing slash. However, these are guidelines and not requirements. The trailing slash is generally used to distinguish a directory which has the trailing slash from a file that does not have the trailing slash. A trailing slash is a forward slash (“/”) placed at the end of a URL such as / or /page/. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |