php - How to write parameters in url?Get the solution ↓↓↓
Good rule is less params is better. If you need numerical id, 2nd option is quite good, if you force
my_funny_name part to be unique, you may rely only on this as id. However keep in mind, that if you change name, url will be broken.
Also remember to avoid double names for same content, like
/project/171/my_old_name. Try to use
<link rel="canonical" href="http://example.com/project/171/my_funny_name">
In the url, you want
AT MINIMUM, the keywords that people will be searching for to find the page in question. The id's, in your case, should not have a negative affect.
Having an id value in your url won't have a negative effect, but you should definitely add words before or after your id for SEO. What I personnaly like is trying to have a "logical" structure in the url, with id at the beginning, like this :
Concerning the underscore, you should rather use "-", as it is considered as the word separator while _ is more for lisibility, but it's like having the words tied to each other.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: your lock file does not contain a compatible set of packages. please run composer update
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.