Id категории

More
6 years 7 months ago - 6 years 7 months ago #7316 by Olexsandr
Здравствуйте.
Нуждаюсь в Вашей консультации.
В joomla 3.8 появилась новая функция, которая убирает id категории из ссылок.
mysite.ru/news/7672-new-video.html
При включении параметра Удалить идентификаторы из URL получается так:
mysite.ru/news/new-video.html

Но в результате этого, все ранее созданные статьи становятся 404. Поскольку поисковик их уже давно проиндексировал.

Вопрос.
Можно настроить плагин так, чтобы при переходе пользователя по ссылке,mysite.ru/news/7672-news-video.html он автоматически перенаправлял на правильную mysite.ru/news/new-video.html?
Last edit: 6 years 7 months ago by Olexsandr.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #7318 by JoomLine
Replied by JoomLine on topic Id категории
Это не задача плагина, при включении экспериментального роутера id просто перестают существовать и для Joomla эти страницы не существуют, плагин просто не знает, что они могут быть.

Для решения такой проблемы вы можете добавить в фаил .htaccess
RewriteCond %{REQUEST_URI} ^(.*)/(\d+)-([^/]+)$
RewriteRule ^ %1/%3 [L,QSA,R=301]
The following user(s) said Thank You: Olexsandr

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #7320 by Olexsandr
Replied by Olexsandr on topic Id категории
Спасибо огромное, помогло.
Но у меня появилась одна проблема.
Дело в том что на сайте есть картинки которые начинаются с цифры и черточки (их не так уж много но все же)
2-Hatred.jpg.
В результате чего все они не отображаются.
Можно как-то решить?
Last edit: 6 years 7 months ago by Olexsandr.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #7321 by JoomLine
Replied by JoomLine on topic Id категории
гхм... попробуйте добавить условие
RewriteCond %{REQUEST_URI} !^/images
The following user(s) said Thank You: Olexsandr

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #7326 by Olexsandr
Replied by Olexsandr on topic Id категории
Все получилось!
Спасибо Вам ОГРОМНОЕ за помощь.
От меня пожертвование.
Last edit: 6 years 7 months ago by Olexsandr.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #7327 by JoomLine
Replied by JoomLine on topic Id категории
Рад что смогли вам помочь. Однако учтите, что новый роутер это экспериментальная функция, они его постоянно доделывают и возможны проблемы в следующих релизах, так что внимательно смотрите при обновлении сайта.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #7328 by Olexsandr
Replied by Olexsandr on topic Id категории
Все таки ничего не получилось с картинками.
То-ли кэш не до конца очистился то ли что-то другое, но сегодня захожу, а картинки так-же не отображаются.
Решил подождать когда разработчики улучшат данную функцию, а за это время может и картинки все переименую, если ничего не изменят. В общем, решил пока подождать. Слишком много проблем появляется с данной функцией.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • firstwriteshop
    • The frame does not synthesize nutrition B12 on its personal. The main assets of diet B12 are animal proteins, such as clams, oatmeal, salmon, milk, yogurt, ham, eggs, bird, cereals, soy milk, almond milk, etc.
    • In Component / JL TV
    • JL Content Fields Filter в настройках полей нет та...
    •   Здравствуйте. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 отсюда с гитхаба скачал и установил на джумла версии 4.1.5 со страницы установка расширений. После установки появилась ошибка " Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found" Зашел на фтп по пути /plugins/system/ и перенес папку в /plugins сменив namespace. Дальше все по инструкции - в системе активировал плагин. В модулях включил. Захожу в созданное поле - есть стандартные вкладки, вкладки "Параметры фильтрации" нет. Что делать? >>>>>>>>>>>>>>>>>>>>> Hello. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 I downloaded version 4.1.5 from GitHub and installed it on Joomla from the extension installation page. After installation, an error occurred: "Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found." I went to ftp at /plugins/system/ and moved the link to /plugins, changing the namespace. Then everything according to the instructions - the plugin was activated in the system. It is enabled in the modules. I go to the created field - there are standard tabs, but there is no "Filter parameters" tab. What should I do?  
    • In Modules Joomline / JL Content Fields Filter
    • JL Content Fields Filter в настройках полей нет та...
    • Здравствуйте. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 отсюда с гитхаба скачал и установил на джумла версии 4.1.5 со страницы установка расширений. После установки появилась ошибка " Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found" Зашел на фтп по пути /plugins/system/ и перенес папку в /plugins сменив namespace. Дальше все по инструкции - в системе активировал плагин. В модулях включил. Захожу в созданное поле - есть стандартные вкладки, вкладки "Параметры фильтрации" нет. Что делать? >>>>>>>>>>>>>>>>>>>>> Hello. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 I downloaded version 4.1.5 from GitHub and installed it on Joomla from the extension installation page. After installation, an error occurred: "Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found." I went to ftp at /plugins/system/ and moved the link to /plugins, changing the namespace. Then everything according to the instructions - the plugin was activated in the system. It is enabled in the modules. I go to the created field - there are standard tabs, but there is no "Filter parameters" tab. What should I do?
    • In Plugins Joomline / Other plugin
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.