1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

插件 vBulletin 4.x URL Redirection

本帖由 admin2012-04-07 发布。版面名称:XenForo中文版

  1. admin

    admin 管理员 管理成员

    注册:
    2011-11-01
    帖子:
    3,671
    赞:
    2,425
    http://xenforo.com/community/threads/vbulletin-4-x-url-redirection.7584/
    Currently supported URLs include:
    • Forums
    • Threads
    • Post permalinks
    • Members
    • Attachments
    • Print thread view
    Installation:
    Standard, Basic or Advanced URLs:
    1. Upload contents of standard-basic-advanced/upload folder to your forum root.
    2. If your URLs are not working, follow these instructions: http://xenforo.com/help/import-redirection/
    3. 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
    5. If your URLs are not working, follow these instructions: http://xenforo.com/help/import-redirection/
    ------------------------------------------------------------------------------------------
    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;
     

    附件文件:

正在加载...