-1

我已经将 IPB4 迁移到 Xenforo 1,然后迁移到 Xenforo 2。有一个脚本可以将旧 URL 重定向到新 URL:https ://xenforo.com/community/resources/redirection-scripts-for-invision- forums-3-x.5948/ 是两个文件和这个htaccess ...我做了很多更改,但什么也没做,旧网址没有重定向。

旧网址示例:http ://www.foroiphone.com/foros/tema/119668-iphone-7-7-plus-movistar-post-oficial/无法找到页面新 XF2 网址:http: //www.foroiphone.com/threads/iphone-7-7-plus-movistar-post-oficial.119668/

在此处输入图像描述

4

1 回答 1

1

这是:

#   Mod_security can interfere with uploading of content such as attachments. If you
#   cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#   SecFilterEngine Off
#   SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
    RewriteEngine On


    #   If you are having problems with the rewrite rules, remove the "#" from the
    #   line that begins "RewriteBase" below. You will also have to change the path
    #   of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /ip.board

    #   This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # IPS Rewrite Rules
    RewriteCond %{REQUEST_URI} /(topic|forum|user)/ [OR]
    RewriteCond %{QUERY_STRING} (^|&)show(topic|forum|user)= [OR]
    RewriteCond %{QUERY_STRING} ^/(topic|forum|user)/ [OR]
    RewriteCond %{PATH_INFO} ^/(topic|forum|user)/
    RewriteRule ^.*$ ips2xf.php [NC,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d  
    RewriteRule ^.*$ - [NC,L]

    RewriteRule ^(data|js|styles|install) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
于 2018-03-14T10:22:50.353 回答