Answer the question
In order to leave comments, you need to log in
What URL format to choose?
The CMS is under development. News + forum. There was a problem that I can not come up with an optimal address format. Both SEO and the maximum beauty of the address are important.
Previously, everything on the site was like this
site.ru/category1-category2/name-of-news
now I thought and decided that when changing categories, the links would break. The category doesn't change often, but if you add/remove a category, the links will break.
however, if I drop categories, I will lose important keywords - category names.
Moreover, if you make a URL like:
site.ru/name-of-news,
then it may turn out that in a year I will have the same news with the same text, and then what? Add a number to the end?
I thought and thought and came up with the idea that you can make a link like:
site.ru/123/name-of-news, where
123 is the number of the post itself. This seems to solve the problem with the theoretical possibility of matching the address, but it seems to be not so beautiful anymore ...
Tell me what to do? Which option is preferable? Are there other options I'm missing?
Answer the question
In order to leave comments, you need to log in
Do as before.
When changing the category name through a 301 redirect, send to a new link.
I am writing a blog module for my CMS - I chose the following address for the entries:
site.ru/name_of_news:123
Bottom dashes, as for me, interfere less with reading the address.
It is better to leave the category names,
category/123/news_title
Where 123 is the post number
The main thing is to add the news identifier to the address anywhere, then you can isolate and use it, and the rest of the address will be just for beauty, but really do not affect anything, even if the categories change.
do this: /news-name
And to avoid collisions - when saving on the server side, check the availability of the name, if not available - assign it to slug-y timestamp, and for users do ajax availability check before saving.
Of the options, I can offer example.com/cat-name/123/news-name as a permanent link, and with a globally unique id. This will allow in the absence of a category (or its change) to make a redirect.
the most optimal option site.ru/name-of-news
for Seo nesting is very important. the smaller it is, the faster and better everything will be indexed.
It is also very important for SEO that the title of the news is written in transliteration. If such a name already exists, then the easiest way is to add a serial number, it will least affect visibility in search engines
the rest of the address will be just for beauty, but really do not affect anything, even if the categories change
By the way,
site.ru/123/name-of-news will be considered as HC3?
and
site.ru/123-name-of-news UV2?
And why not:
Category: site.ru/news/<category_name>
News for the time: site.ru/news/// — leave what you need
or news in the category for the time News for the time: site.ru/news/ <category_name>.//
Second page in the category: site.ru/news/<category_name>/page2
News: site.ru/news/<news_ID>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question