galaxy_url_rewrite-screensh.thumbnail.png
galaxy-logo.png

This project is not covered by Drupal’s security advisory policy.

[EN]


With this module you can create simple aliases, or aliases with dynamic parameters. Dynamic parameter describe with symbol "%". No limitations on parameters number.
For example simple alias is "university/ab/abiturient" > "abiturient". This synonym will change internal address "university/ab/abiturient" to "abiturient" for each link generated with l() function, and external address (specified in the address field of web-browser).
For example alias with dynamic parameter is "university/ab/abiturient/%" > "abiturient/%", where symbol "%" describe any variable parameter. This alias will change address "university/ab/abiturient/1" to address "abiturient/1" and address "university/ab/abiturient/2" to address "abiturient/2".

Complete installation requires write permissions to file settings.php. Settings.php is configuration file of CMS/CMF Drupal. This module trying write two definitions of functions to file settings.php: custom_url_rewrite_outbound and custom_url_rewrite_inbound.
Unlike other solutions, this module does not use redirects!

Rysevets M. was developed this module for galaktika.ru ("Galaktika" corp.)
Distributed under the GPLv.2 license


[RU]


Данный модуль предоставляет возможность создания, как простых синонимов, так и синонимов с динамическими параметрами. Динамический параметр указывается символом "%". Количество параметров не ограничено.
Примером простого синонима является синоним "university/ab/abiturient" > "abiturient". Данный синоним будет заменять исходящий адрес "university/ab/abiturient" на адрес "abiturient" во всех ссылках, выведенных с использованием функции l(), а также входящий адрес по аналогичному принципу (указываемый в строке адреса веб-браузера).
Примером синонима с динамическими параметрами является синоним "university/ab/abiturient/%" > "abiturient/%". Данный синоним будет описывать аналогичную замену с той лишь разницей, что вместо "%" может быть использован любой переменный параметр, так, к примеру, используя этот синоним, система будет преобразовывать адрес "university/ab/abiturient/1" в адрес "abiturient/1", а адрес "university/ab/abiturient/2" в "abiturient/2".

Для полной установки модулю требуется возможность записи в файл settings.php – основной конфигурационный файл CMS/CMF Drupal. Модуль попытается записать в этот файл определение двух функций: custom_url_rewrite_outbound и custom_url_rewrite_inbound.
В отличии от других решений данный модуль не использует редиректы!

Разработал Рысевец М. для galaktika.ru (корпорации "Галактика")
Распространяется под лицензией GPLv.2

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Administration tools
  • Created by maxrys on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases