Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I've done some Googling trying to find out the origin of the word "slug" as used in URLs. However I can't seem to find any information on it. Does anyone know where this term came from?
http://en.wikipedia.org/wiki/Slug_(web_publishing)
This is what I've heard (from a somewhat reliable source):
Slugs are slow-moving gastropods. When you call someone a slug, you're calling them lazy - it's not a compliment. When you use human-readable terms in a URL instead of a database number or some other form, it's usually only for convenience; you can name URLs virtually anything you want, and so naming them using English words is mostly for readability. It supposedly originated when programmers became too "lazy" to look up a proper code or ID for a website, and began naming them using words. Those "lazy URLs" became slugs.
Again, I'm not sure if this is 100% correct, but it's what I've heard!
Hope this helps!
N.S.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
In short, I was wondering about which is best for good SEO?
https://example.com/articles/{id}/{slug}
https://example.com/articles/18/new-atlas-robot-revealed
or
https://example.com/articles/{slug}-{id}
https://example.com/articles/new-atlas-robot-revealed-18
Or, does it matter for SEO?
Is it related to Google News?
The first one is used by StackOverflow and it does a redirect when a slug did not given (or wrong) to the right, slugged version. And I'm liking it.
But while I'm surfing on the internet, I mostly see URLs like the second one.
Actually for the url naming, you can understanding as this way:
/ directory, or you can say folder path etc. For example: home/product/producta
- spacing replacement, For example: home/product/stack-overflow-product-a
Take an example your question url on Stack Overflow here:
https://stackoverflow.com/questions/60635996/url-seo-id-slug-vs-slug-id
I am sure you see the sample :D
Here is more information for your references:
https://moz.com/learn/seo/url
https://yoast.com/seo-friendly-urls/
https://yoast.com/wordpress-seo-url-permalink/
Hope it helps!
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Is there any consensus on the best practice of path vs page url structures (for simple, relatively static sites), in terms of usability and SEO?
e.g.
http://mysite.com/about.html
vs
http://mysite.com/about/
Where the about folder contains index.html
It would seem in terms of usability, esp. sharing and linking, that the path approach is much better (predicated upon the approach of only sharing the url up to the slash after the folder, and not including the index.html), albeit more complex in terms of organization - and that the page approach is better for SEO.
Also I've never quite understood the difference between
http://mysite.com/about/
and
http://mysite.com/about/index.html
Will the first always redirect to the second, therefore slowing things down? And when sharing the first type of url, should/must one always include the slash?
Thanks
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I find that there always a wavy line in the URL before people's name in its profile web page.Such as this webpage:http://cg.cs.tsinghua.edu.cn/people/~taochen/
There is a '~' before name 'taochen'.
What is the significance of it?A rule or a habit?
The tilde (~) often indicates a users home directory (in the Unix world). So when an educational institution wants to signify webpages that are generated in more or less non-controlled ways, a tilde is a good way to tell the open Internet, "hey, this website is the creation of someone that doesn't own this whole domain". Or, "this is their home webpage".
And to answer part two... it is a best practice, not a rule.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm considering to use url pattern like below:
example.com/item/r6B0PmUmx07O/just-one-item
example.com/item/r6B0PGgwPJWl/yet-another-item
the part before slug is an unique and unpredictable id for an item.
compare with url like
example.com/item/1001/just-one-item
example.com/item/1002/yet-another-item
is this way bad for SEO?
or will it be bad for crawling by the search engine?(since the crawler cannot 'guess' the next item's id)
I'm not sure how many popular crawlers try to increment number values in URL to hit the page.
They generaly try to traverse by links.
But consider hiding some info from malicious users. If you can reach any info about your users (by example.com/user/1001) there is generally wrong idea to have sequential UID's. It's not mean to be a part of security but sometimes it's good to difficult access to your data. So the competition will have some difficulties when guessing how much products you have on stock :)
Consider supplying dynamical sitemap with links to all your products. This make you sure that every crawler will hit all your items no matter what key it has.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
This is something I've been wondering for a bit.
If you were to write a successful site/app, would writing it in rails give you and advantage, say for getting the app noticed, as opposed to writing it in PHP etc?
Do people/companies who write in ruby/rails actively promote that their site/app is written in rails so it gets more publicity/hype?
Appreciate any feedback/POV's.
Not much. People don't look under the covers. The advantage is that you can build it faster and change it faster, which means you get to market faster.
Though some companies mention that the app runs on Rails or built in NYC, regular users, as a rule, do not care what the app they are using is built upon. But if you plan to eventually sell it or draw the investments, the trendy technology will certainly give you some bonus points.