Slash
Quote from Erenbur on April 21, 2019, 12:24 pmThomas, hello! On the forum, most URLs end with a slash (/).
Example: https://erenbur.ru/discussion/members/My URLs are set up in permalinks without a slash. And there is a redirect to them from urls ending /
A big request to make it possible to choose the end of urls or the forum itself looked at the structure of permalinks and from there took the settings.
And then Yandex and Google are crazy, indexing the forum 🙂
Thomas, hello! On the forum, most URLs end with a slash (/).
Example: https://erenbur.ru/discussion/members/
My URLs are set up in permalinks without a slash. And there is a redirect to them from urls ending /
A big request to make it possible to choose the end of urls or the forum itself looked at the structure of permalinks and from there took the settings.
And then Yandex and Google are crazy, indexing the forum 🙂
Quote from Asgaros on April 22, 2019, 11:14 amHello @erenbur
The reason why I decided to use a trailing slash is that WordPress uses them as a default for permalinks as well. It is also common practice to use them for URLs which not directly end with a file-extensions (e.g.: my-site.com/index.html). To avoid confusion and to keep things consistent, I decided that the URL-structur follows this structure.
May I ask: Is there a special reason why you dont use trailing slashes at the end of your URLs?
Hello @erenbur
The reason why I decided to use a trailing slash is that WordPress uses them as a default for permalinks as well. It is also common practice to use them for URLs which not directly end with a file-extensions (e.g.: my-site.com/index.html). To avoid confusion and to keep things consistent, I decided that the URL-structur follows this structure.
May I ask: Is there a special reason why you dont use trailing slashes at the end of your URLs?
Quote from Erenbur on April 22, 2019, 11:37 amHello, Thomas!
It seems to me (I’m not sure, but I think so) that gradually the end of the URL without a slash will become the standard of the Internet. It would be desirable to make that users themselves can edit the URL and choose with a slash or not.
Hello, Thomas!
It seems to me (I’m not sure, but I think so) that gradually the end of the URL without a slash will become the standard of the Internet. It would be desirable to make that users themselves can edit the URL and choose with a slash or not.
Quote from Asgaros on April 25, 2019, 8:19 pmI will take your suggestion into consideration and will try to add it when I introduce more options for the SEO-part of the forum.
I will take your suggestion into consideration and will try to add it when I introduce more options for the SEO-part of the forum.
Quote from Erenbur on April 27, 2019, 9:31 pmThe easiest way to do this is for the forum to take information from the “Permanent Links” setting. If there is no slash, then the forum makes the end of the url without a slash. And then I have our russian search engine Yandex bypasses many pages, marking them as “redirect”.
The easiest way to do this is for the forum to take information from the “Permanent Links” setting. If there is no slash, then the forum makes the end of the url without a slash. And then I have our russian search engine Yandex bypasses many pages, marking them as “redirect”.
Quote from Asgaros on May 2, 2019, 11:43 amHello @erenbur
I have to ask again in detail so I can fully understand the problem. As far as I see currently all URLs have a trailing slash at the end. After clicking on one of those URLs, your site is redirecting to the same URL without the trailing slash at the end because of your permalink-settings. So actually the URL at the end is fine but you want to avoid that redirect, correct?
Hello @erenbur
I have to ask again in detail so I can fully understand the problem. As far as I see currently all URLs have a trailing slash at the end. After clicking on one of those URLs, your site is redirecting to the same URL without the trailing slash at the end because of your permalink-settings. So actually the URL at the end is fine but you want to avoid that redirect, correct?
Quote from Erenbur on May 2, 2019, 1:41 pmYes! I would like the links on the forum to be without a slash at the end and immediately lead to the correct URL without redirect.
The problem is that links from all forum topics have a slash at the end. Search engines, Yandex or Google come and follow these links. They are redirected to the address without a slash at the end. I don’t know how Google relates to this, but our Russian search engine in the webmaster’s office indicates that there are a lot of redirects (now over 90), and the forum has just started to work.
Perhaps the search engines will be bad for too many redirects on the site. Approximately the same as they are bad for a large number of duplicate pages.In the Russian-language Internet it somehow happened that almost all sites without a slash at the end. In the English-language Internet, most likely, at least half of the sites without a slash at the end. Asian sites may have their problems due to difficult languages. I think that in this rather important matter it is necessary to give webmasters the freedom to choose, if it is technically possible.
Yes! I would like the links on the forum to be without a slash at the end and immediately lead to the correct URL without redirect.
The problem is that links from all forum topics have a slash at the end. Search engines, Yandex or Google come and follow these links. They are redirected to the address without a slash at the end. I don’t know how Google relates to this, but our Russian search engine in the webmaster’s office indicates that there are a lot of redirects (now over 90), and the forum has just started to work.
Perhaps the search engines will be bad for too many redirects on the site. Approximately the same as they are bad for a large number of duplicate pages.
In the Russian-language Internet it somehow happened that almost all sites without a slash at the end. In the English-language Internet, most likely, at least half of the sites without a slash at the end. Asian sites may have their problems due to difficult languages. I think that in this rather important matter it is necessary to give webmasters the freedom to choose, if it is technically possible.
Quote from Asgaros on May 2, 2019, 8:06 pmHello @erenbur
Actually adding a setting for this is not so straight-forward because it would only have any effect if forum and the permalink-structure use different endings. Otherwise WordPress already redirects back as before which can lead to confusion for users.
However, what I want to do with the next update is adding a new filter which can be used in this case. By adding the following code to your themes functions.php-file the trailing-slash can be removed:
function remove_trailing_slash($slash) { return ''; } add_filter('asgarosforum_seo_trailing_slash', 'remove_trailing_slash');This filter will be available with the upcoming v1.14.5 release and I hope its fine for you to use. 🙂
Hello @erenbur
Actually adding a setting for this is not so straight-forward because it would only have any effect if forum and the permalink-structure use different endings. Otherwise WordPress already redirects back as before which can lead to confusion for users.
However, what I want to do with the next update is adding a new filter which can be used in this case. By adding the following code to your themes functions.php-file the trailing-slash can be removed:
function remove_trailing_slash($slash) { return ''; } add_filter('asgarosforum_seo_trailing_slash', 'remove_trailing_slash');
This filter will be available with the upcoming v1.14.5 release and I hope its fine for you to use. 🙂