Id категории

More
6 years 5 months ago - 6 years 5 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 5 months ago by Olexsandr.

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

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

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

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

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

More
6 years 5 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 5 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

    • The garden seemed to have a magical quality that m...
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them.
    • In Component / Afisha Joomla
    • One day, a curious boy named Sam mov
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them.
    • In Component / Afisha Joomla
    • professional seo services
    •   Tesla CEO Elon Musk was snubbed from TIME Magazine’s “Most Influential People in AI” list, despite being the driving force behind the company’s self-driving efforts, data collection, and the development of the humanoid robot Optimus, along with other projects, like xAI. TIME released its list today, highlighting what it intended to be a compilation of the most brilliant names in AI. Those on the list have achieved big things, and the names on the list are not to be discredited in any way. Some of the names on the list are the biggest in tech and AI development. Jensen Huang, CEO of Nvidia, Sam Altman, CEO of OpenAI, Satya Nadella, CEO of Microsoft, and Mark Zuckerberg, CEO of Meta, are all included on the list. These are just a few of the names that TIME listed as the most influential in AI, but Musk was not included.  
    • In Общий форум / Общие вопросы по Joomla
© 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.