Galaxy Url Rewrite
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
[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