Joomla 4. Компонент K2 и форк K2ForJ4 (18 янв 2024)

Если вас, как и меня, достало выслушивать (вычитывать) бесконечные обещания разработчика K2 опубликовать версию компонента K2 под Joomla 4 (без чего невозможно реализовать апгрейд from Joomla 3 to Joomla 4) - воспользуйтесь форком K2ForJ4. Который в данный момент установлен и без каких-либо проблем работает на этом веб-сайте.

Устанавливаем sh404SEF

Больше
13 года 4 мес. назад - 13 года 3 мес. назад #1 от Aleksej
Aleksej создал тему: Устанавливаем sh404SEF


Компонент Joomla, предназначенный для SEO-оптимизации web-сайта и придания URL-адресам более осмысленных имен. Этот "дружественный к поиску"
(search-engine-friendly, SEF) компонент автоматически переименовывает
URL-адреса PHP-страниц в удобочитаемый текст, удаляет из него ненужные символы и даже добавляет суффикс файла в его конец.

Список изменений:

Changelog
[2010-10-08] Version 2.1.5.746

2010-10-08
[bug] Prevent notice error if Itemid is missing in com_content url
[chg] Added or updated Romanian translation
Tracker #236
[chg] Updated Kunena plugin to handle both pre and post 1.6.0 stable urls
Tracker #234
[bug] Having a $ sign followed by one or more letters in analytics password
can break analytics features when configuration is being saved
Tracker #232
[chg] Added class already loaded check in autoloader, in case some
extension would load it twice (??)
[bug] Fix security vulnerability as per Joomla tracker 22767
[chg] Added check in case system plugin is included several times
2010-09-20
[bug] Error when displaying error (!) message when editing urls, or editing
aliases or deleting pageids
2010-09-16
[chg] Added check to protect agains notice error in case of malformed host
name
[chg] Can display notice error or blank page when viewing analytics on
servers where curl has been disabled after being enabled for a while
(php version change usually)


Устанавливаем компонент (Расширения - Установить/Удалить).



Заходим: Компоненты -> sh404SEF -> нажимаем кнопку Click here to switch to extended display (with all available parameters)

Нажимаем sh404SEF Конфигурация, Вкладка основное:
    Включено: Да

    Список заменяемых символов:

Á|A, Â|A, Å|A, Ă|A, Ä|A, À|A, Ć|C, Ç|C, Č|C, Ď|D, É|E, È|E, Ë|E, Ě|E, Ì|I, Í|I, Î|I, Ï|I, Ĺ|L, Ń|N, Ň|N, Ñ|N, Ò|O, Ó|O, Ô|O, Õ|O, Ö|O, Ŕ|R, Ř|R, Š|S, Ś|O, Ť|T, Ů|U, Ú|U, Ű|U, Ü|U, Ý|Y, Ž|Z, Ź|Z, á|a, â|a, å|a, ä|a, à|a, ć|c, ç|c, č|c, ď|d, đ|d, é|e, ę|e, ë|e, ě|e, è|e, ì|i, í|i, î|i, ï|i, ĺ|l, ń|n, ň|n, ñ|n, ò|o, ó|o, ô|o, ő|o, ö|o, š|s, ś|s, ř|r, ŕ|r, ť|t, ů|u, ú|u, ű|u, ü|u, ý|y, ž|z, ź|z, ˙|-, ß|ss, Ą|A, µ|u, Ą|A, µ|u, ą|a, Ą|A, ę|e, Ę|E, ś|s, Ś|S, ż|z, Ż|Z, ź|z, Ź|Z, ć|c, Ć|C, ł|l, Ł|L, ó|o, Ó|O, ń|n, Ń|N, Г?|A, Г‚|A, Д‚|A, Г„|A, Д†|C, Г‡|C, Д¦|C, Д®|D, Д?|D, Г‰|E, Д?|E, Г‹|E, Д№|E, Г«|I, Г®|I, Д±|L, Е?|N, Е‡|N, Г“|O, Г”|O, Е?|O, Г–|O, Е”|R, Е?|R, Е |S, Е№|O, Е¤|T, ЕЏ|U, Г№|U, Е°|U, Г¶|U, Г»|Y, ЕЅ|Z, Е±,Z, Г·|a, Гў|a, Д?|a, Г¤|a, Д‡|c, Г§|c, Д«|c, Д¬|d, Д‘|d, ГЊ|e, Д™|e, ГЌ|e, Д›|e, Г|i, ГЏ|i, Дє|l, Е„|n, Е?|n, Гі|o, Гґ|o, Е‘|o, Гќ|o, Е·|s, Е›|s, Е™|r, Е•|r, ЕЎ|t, ЕЇ|u, Гє|u, Е‘|u, ГҐ|u, ГЅ|y, Еµ|z, Еє|z, Л™|-, Гј|ss, Д„|A, Вњ|u, Ў|G, Ё|YO, Є|E, Ї|YI, І|I, і|i, ґ|g, ё|yo, ±|#, є|e, ї|yi, А|A, Б|B, В|V, Г|G, Д|D, Е|E, Ж|ZH, З|Z, И|I, Й|Y, К|K, Л|L, М|M, Н|N, О|O, П|P, Р|R, С|S, Т|T, У|U, Ф|F, Х|H, Ц|TS, Ч|CH, Ш|SH, Щ|SCH, Ъ|', Ы|Y, Ь|, Э|E, Ю|YU, Я|YA, а|a, б|b, в|v, г|g, д|d, е|e, ж|zh, з|z, и|i, й|y, к|k, л|l, м|m, н|n, о|o, п|p, р|r, с|s, т|t, у|u, ф|f, х|h, ц|ts, ч|ch, ш|sh, щ|sch, ъ|', ы|y, ь|, э|e, ю|yu, я|ya


В нижнем регистре: Да

Вкладка Плагины
    Использовать псевдонимы: Нет
    Вставить имя таблицы содержания: Нет- предотвращает появление в url слова Table

(А) Вкладка Расширенный
    Режим Перезаписи (Rewriting): без .htaccess (index.php?)
    При этом учтите, что если Вы создадите новый пункт в меню, то Вам придется зайти в настройки 404 и очистить кэш. Иначе страница будет отображаться неверно. Чтобы избежать этой проблемы используем пункт (Б).
(Б) Вкладка Расширенный
    Режим Перезаписи (Rewriting): исп
.htaccess (mod_rewrite)

Идем в корневую папку сайта и создаем там файл под названием .htaccess, который содержит:

01 ##
02 # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
03 # @package Joomla
04 # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
05 # @license www.gnu.org/copyleft/gpl.html GNU/GPL
06 # Joomla! is Free Software
07 ##
08
09 #####################################################
10 # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
11 #
12 # The line just below this section: 'Options +FollowSymLinks' may cause problems
13 # with some server configurations. It is required for use of mod_rewrite, but may already
14 # be set by your server administrator in a way that dissallows changing it in
15 # your .htaccess file. If using it causes your server to error out, comment it out (add # to
16 # beginning of line), reload your site in your browser and test your SEF url's. If they work,
17 # it has been set by your server administrator and you do not need it set here.
18 #
19 #####################################################
20
21 ## Can be commented out if causes errors, see notes above.
22 Options +FollowSymLinks
23
24 #
25 # mod_rewrite in use
26
27 RewriteEngine On
28
29 ########## Begin - Rewrite rules to block out some common exploits
30 ## If you experience problems on your site block out the operations listed below
31 ## This attempts to block the most common type of exploit `attempts` to Joomla!
32 #
33 # Block out any script trying to set a mosConfig value through the URL
34 RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
35 # Block out any script trying to base64_encode crap to send via URL
36 RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
37 # Block out any script that includes a <script> tag in URL
38 RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
39 # Block out any script trying to set a PHP GLOBALS variable via URL
40 RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
41 # Block out any script trying to modify a _REQUEST variable via URL
42 RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
43 # Send all blocked request to homepage with 403 Forbidden error!
44 RewriteRule ^(.*)$ index.php [F,L]
45 #
46 ########## End - Rewrite rules to block out some common exploits
47
48 # Uncomment following line if your webserver's URL
49 # is not directly related to physical file paths.
50 # Update Your Joomla! Directory (just / for root)
51
52 # RewriteBase /
53
54 ########## Begin - Joomla! core SEF Section
55 ############# Use this section if using ONLY Joomla! core SEF
56 ## ALL (RewriteCond) lines in this section are only required if you actually
57 ## have directories named 'content' or 'component' on your server
58 ## If you do not have directories with these names, comment them out.
59 #
60 #RewriteCond %{REQUEST_FILENAME} !-f
61 #RewriteCond %{REQUEST_FILENAME} !-d
62 #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
63 #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
64 #RewriteRule ^(content/|component/) index.php
65 #
66 ########## End - Joomla! core SEF Section
67
68 ########## Begin - 3rd Party SEF Section
69 ############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
70 #
71 RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
72 RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
73 RewriteCond %{REQUEST_FILENAME} !-f
74 RewriteCond %{REQUEST_FILENAME} !-d
75 RewriteRule (.*) index.php
76 #
77 ########## End - 3rd Party SEF Section

Если не удается войти на сайт, введя адрес с префиксом www - уберите адрес сайта из строчки (файл configuration.php):
Code:
1 var $live_site = '';
Последнее редактирование: 13 года 3 мес. назад пользователем Aleksej.

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Dev banner 3
Работает на Kunena форум