Forums

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, kreossino This topic is now closed

Latest Downloads

e107 version 2.3.0 from 17.03.2020
in Category: Stuff in development

e107 version 2.3.0 from 17.03.2020

2 weeks ago

e107 CMS downloaded from Github 17.03.2020 - called 2.3.0.0 - deleted e107 tests - deleted Voux and Landing Zero themes. This pack is for users that are working with our themes. Stable version 2.2.1 i 
Read more..

e107 version 2.3.0 from 17.03.2020
JM Core plugin 1.8
in Category: e107 plugins

JM Core plugin 1.8

3 months ago

Please, use Github version.  The version used on this site. It fixes some core limitations via the plugin, no core changes. Check Readme at first.  Version 1.8 What is inside? - fix for missing tit 
Read more..

JM Core plugin 1.8
ReCaptcha plugin 1.3
in Category: ReCaptcha plugin

ReCaptcha plugin 1.3

3 months ago

No CAPTCHA reCAPTCHA Captcha replacement for e107 v2.2 or higher with shortcodes.  Added shortcodes for replacing contact secure image shortcodes. Possibility to hide it from logged users.
Read more..

ReCaptcha plugin 1.3