Historically, it’s common for URLs with a trailing slash to indicate a directory, and those without a trailing slash to denote a file: http://example.com/foo/ (with trailing slash, conventionally a directory) http://example.com/foo (without trailing slash, conventionally a file)[quote]When a URL is added to HTML element, should I include or omit the / element at the end of a url. Such as when linking to internal pages, etc.
For instance: [url]http://mysite.com/thispage.html/[/url] versus [url]http://mysite.com/thispage.html[/url]
Which one is correct?[/quote]
Historically, it’s common for URLs with a trailing slash to indicate a directory, and those without a trailing slash to denote a file:
[url]http://example.com/foo/[/url] (with trailing slash, conventionally a directory) [url]http://example.com/foo[/url] (without trailing slash, conventionally a file)
If the website address has a file extension like .php, .htm, .html, .xml etc then I wouldn't use a trailing slash, but however I always use a trailing slash and www. on domains like www.seoclerks.com/ rather than seoclerks.com.
~JakeIf the website address has a file extension like .php, .htm, .html, .xml etc then I wouldn't use a trailing slash, but however I always use a trailing slash and www. on domains like [url="http://www.seoclerks.com/"]www.seoclerks.com/[/url] rather than seoclerks.com.
~Jake
Unboxed
Historically, it’s common for URLs with a trailing slash to indicate a directory, and those without a trailing slash to denote a file:
http://example.com/foo/ (with trailing slash, conventionally a directory) http://example.com/foo (without trailing slash, conventionally a file) [quote]When a URL is added to HTML element, should I include or omit the / element at the end of a url. Such as when linking to internal pages, etc. For instance: [url]http://mysite.com/thispage.html/[/url] versus [url]http://mysite.com/thispage.html[/url] Which one is correct?[/quote] Historically, it’s common for URLs with a trailing slash to indicate a directory, and those without a trailing slash to denote a file: [url]http://example.com/foo/[/url] (with trailing slash, conventionally a directory) [url]http://example.com/foo[/url] (without trailing slash, conventionally a file)
Are you sure you want to delete this post?