1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 vB4 URL Redirection isn't working with new forum directory

Discussion in 'XenForo Questions and Support' started by Ahmed, Feb 5, 2015.

  1. Ahmed

    Ahmed Well-Known Member

    After moving from vB4 and changing old URLs are not working when I change forum directory. If I keep old forum directory they redirect just fine. Example:
    The above linke get redirected just fine to:
    But this:
    gives me a 404 Not Found error when it should take me to:
    My setup:
    Any suggestions?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can upload a copy of those redirect scripts to the old_dir as well. Just be sure to edit the 301config.php file to specify the path to your XF directory.
  3. Ahmed

    Ahmed Well-Known Member

    Thanks Jake.

    A while after posting my question I got it working with the rule:
    location ~ /old_dir{
        rewrite ^/old_dir/(.*)$ /new_dir/$1 permanent;
    However, that only worked for threads, but not for forums. When I try a forum page, the redirect script "forumdisplay.php" gets downloaded. Any ideas why?
    I was too sleepy last night so I didn't update my post.

Share This Page