1. Приветствуем Вас на неофициальном форуме технической поддержки XenForo на русском языке. XenForo - новый и перспективный форумный движок от бывших создателей vBulletin.

vBulletin 4.x URL Redirection

Тема в разделе "Плагины для XenForo", создана пользователем olowiak, 27 ноя 2010.

Загрузка
  1. olowiak

    olowiak Местный

    Регистрация:
    18.11.10
    Сообщения:
    11
    Симпатии:
    90
    vBulletin 4.x URL Redirection

    Тема на оф. форуме:
    Код:
    http://xenforo.com/community/threads/vbulletin-4-x-url-redirection.7584/
    Описание: This addon expands upon the existing vB3 URL redirection scripts to support the Standard, Basic, Advanced and Mod_Rewrite modes available in vB4.

    Currently supported URLs include:
    • Forums
    • Threads
    • Post permalinks
    Установка:

    Standard, Basic or Advanced URLs:
    1. Upload contents of standard-basic-advanced/upload folder to your forum root.
    2. If you are using nginx and Advanced mode URLs, you may need the following rewrites:
      Код:
      rewrite ^/showthread.php /showthread.php;
       rewrite ^/forumdisplay.php /forumdisplay.php;
    Mod_Rewrite URLs:
    1. Upload contents of standard-basic-advanced/upload folder to your forum root.
    2. If your old rewrite rules are still in place, your URLs may work at this stage. If not, continue to install a route-based alternative: (and be sure to disable any remaining vB4 rewrite rules as they may interfere with the routes)
    3. Upload contents of mod_rewrite/upload folder to your forum root.
    4. Install the addon XML file mod_rewrite/addon_vB4Redir.xml
    ------------------------------------------------------------------------------------------​

    Change of directory:

    Follow these instructions if you wish to also change your forum directory when moving from vBulletin. A basic understanding of rewrite rules is required - these are just examples. To specify the root directory, swap out /old-dir/ or /new-dir/ for /

    Standard, Basic or Advanced URLs:

    Apache: (untested)
    Код:
    RewriteRule ^/old-dir/showthread.php /new-dir/showthread.php
    RewriteRule ^/old-dir/forumdisplay.php /new-dir/forumdisplay.php
    Nginx:
    Код:
    rewrite ^/old-dir/showthread.php /new-dir/showthread.php;
    rewrite ^/old-dir/forumdisplay.php /new-dir/forumdisplay.php;
    Mod_Rewrite URLs: (Note that these are only tested with the route-based redirection system)

    Apache: (untested)
    Код:
    RewriteRule ^/old-dir/threads/ /new-dir/threads
    RewriteRule ^/old-dir/forums/ /new-dir/forums
    Nginx:
    Код:
    rewrite ^/old-dir/threads/ /new-dir/threads;
    rewrite ^/old-dir/forums/ /new-dir/forums;
    Вложение обновлено 26.04.2011.
     

    Вложения:

    • vB4Redir.zip
      Размер файла:
      8,4 КБ
      Просмотров:
      28
    grizone, Herurg и Владимир Арутюнян нравится это.
  2. MrBurn

    MrBurn Пользователь

    Регистрация:
    27.02.15
    Сообщения:
    10
    Симпатии:
    2
    Версия XF:
    1.4.5
    А по русски?
     

Поделиться этой страницей