TemKa_SD Posted September 27, 2018 Share Posted September 27, 2018 Здравствуйте. В модуле PAGES создал папку Программы, добавил туда страницу Программы и сделал её по умолчанию в папке. Как сделать, чтобы страница открывалась только в корне, сейчас открывает и так https://сайт/программы/программы.html и так https://сайт/программы/ одинаковый контент. Link to comment Share on other sites More sharing options...
newbie Posted September 28, 2018 Share Posted September 28, 2018 Думаю, идентично http://ipbskins.ru/forum/topic15725.html Link to comment Share on other sites More sharing options...
TemKa_SD Posted October 2, 2018 Author Share Posted October 2, 2018 Посмотрел на оф сайте, страницы: https://invisioncommunity.com/features/https://invisioncommunity.com/features/index/ Здесь для поисков есть тег canonical, что логично. <link rel="canonical" href="https://invisioncommunity.com/features/index/" /> Хорошо, редирект не критично, но, если я хочу использовать без /index/ и в поиске и для пользователей. Как поменять местами canonical ? Link to comment Share on other sites More sharing options...
newbie Posted October 7, 2018 Share Posted October 7, 2018 canonical прописывается, если для страницы установлено "Make default page for this folder", либо если установлен\applications\cms\sources\Pages\Page.php /* If this is a default page, we may be accessing this from the folder only. The isset() check is to ensure canonical tags for more specific things (like databases) are not overridden. */ if ( $this->default AND !isset( \IPS\Output::i()->linkTags['canonical'] ) ) { \IPS\Output::i()->linkTags['canonical'] = (string) $this->url(); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now