Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
TemKa_SD

Как работать с папками страниц?

Recommended Posts

Здравствуйте. В модуле PAGES создал папку Программы, добавил туда страницу Программы и сделал её по умолчанию в папке.

 

Как сделать, чтобы страница открывалась только в корне, сейчас открывает и так https://сайт/программы/программы.html и так https://сайт/программы/ одинаковый контент.

Share this post


Link to post

Посмотрел на оф сайте, страницы:

 

https://invisioncommunity.com/features/

https://invisioncommunity.com/features/index/

 

Здесь для поисков есть тег canonical, что логично.

 

<link rel="canonical" href="https://invisioncommunity.com/features/index/" />

 

Хорошо, редирект не критично, но, если я хочу использовать без /index/ и в поиске и для пользователей. Как поменять местами canonical ?

Share this post


Link to post

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();
		}

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...