php - How to write parameters in url?

Solution:
Good rule is less params is better. If you need numerical id, 2nd option is quite good, if you forcemy_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_funny_name
and/project/171/my_old_name
. Try to use<link rel="canonical" href="http://example.com/project/171/my_funny_name">
Answer
Solution:
In the url, you wantAT 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.
Answer
Solution:
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 :
/123_my-category/456_my-great-stuff
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 ↓
Additional Information:
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.
Similar questions
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.