I know, everybody hates ads. But you dislike to pay for something too. I would like to give everything for free, but it's impossible because costs are too much. If you know how Google ads work, you know how to help. It's on you. I can detect income by country, so... Australia rocks now! Thanks

How urls work with news


Jimako » 1 year ago

This apply for single news (other plugins can work different way) (it calls extend or view news)

You can set 4 ways how to display news URLs: 

 News Sef Ulr 01

  1. default or legacy

With this setting you don't need canonical URLs at all. Links just don't look pretty. 

  1. news/news-title 

With this setting your URL is created by word "news" +  news field called sef-url + appendix .html  When you change sef-url, you old URLs get 404.  So first sef-url setting is very important, I know that it's easy to generate it from title, but just remember that the change will not be without consequences later.

Next problem with this setting is that old legacy links still work and you can have double content if you use plugin with legacy links. 

Your canonical URLs should be exactly the same as your SEF URLs.

  1. news/news-category/news-title

The same as above, but category sef-url is added. Change news category, you get 404, change sef values (anyone of them), you get 404. And legacy links still works.  

Your canonical URLs should be exactly the same as your SEF URLs.

Yes, and the winner is option 3!  /news/1/news-title

Why? Because all rewriting is doing thanks ID in URL address.  You can have as news-title almost anything; you can change your SEF-URLs as you want.  This is most similar to old version, just use /news/ID/ and you never get 404. Don't worry about mistype in URL, any variations work.  

But you get a lot of double content this way.  This is reason why I am building canonical plugin. You set one version for news ID and all versions get the same canonical link. Only condition is to use version /news/ID/anything-you-want.  Google will (should) display your canonical URL in result, so it's will be probably the same as your SEF-URL, but you don't need to worry with any later changes (category, title), everything is managed by word news and ID (until e_PAGE and e_QUERY work, hopefully forever)


JMadmin

Jimako
Main Admin
JMadmin

Evgura » 1 year ago
The third option is the best is what?

news/news-category/news-title
or
news/1/news-title


Evgura
Level 2

Evgura » 1 year ago
That it does not turn out at me to adjust canonical in news.
There all hands need to register or should it turn out automatically?


Evgura
Level 2

Evgura » 1 year ago
@Jimako Help, help, help
What am I doing wrong?


Evgura
Level 2

Evgura » 1 year ago
If the site administration is set to Russian, the canonical address is not saved in the news settings. When you switch to English, it is saved.
Do all the news need to be manually rewritten?


Evgura
Level 2

Jimako » 1 year ago
@Evgura sorry, busy day at work
news/1/news-title - for me the best choice + canonical urls.

You don't do anything wrong - It's not finished for news completly

Uff, that Russian problem - this is multilang site, so this shouln't be problem. So I need to set admin to Russian to test this? But it's weird.

I will be working on it this evening. Just wait. But on localhost (at home) I have PHP 5.5 , so I really should test it (php 7) here before publish it.


JMadmin

Jimako
Main Admin
JMadmin

Evgura » 1 year ago
Ok, I get it. I have a installed on my hosting PHP 5.6


Evgura
Level 2

Moderator(s): Jimako This topic is now closed