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

Quick re-direct question

Discussion in 'Installation, Upgrade, and Import Support' started by PVO_Dave, Nov 27, 2011.

  1. PVO_Dave

    PVO_Dave Active Member

    Hi,

    I don't really know much about .htaccess re-directs, can someone help me out with the hopefully simple query below:

    We have moved from VB4 to XF, looks like some users must have favourited the /forum.php URL, what can I put in my .htaccess to re-direct people from forum.php to index.php

    Ta,
    Dave.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Definitely not my strong point, but this may do it, assuming the forum is installed in the root:
    Code:
    RewriteRule ^forum.php / [R=301,L]
    Have you considered uploading a forum.php file though with a message stating the site URL has changed?
     
  3. PVO_Dave

    PVO_Dave Active Member

    Thanks Brogan - I'll give that a go :)

    I did think about it, but users need as much automated as possible lol
     
  4. PVO_Dave

    PVO_Dave Active Member

    Didn't seem to work - thanks anyway, I'll do some more searching
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Try this instead:
    Code:
    RewriteRule ^forum.php index.php [R=301,L]
     
  6. PVO_Dave

    PVO_Dave Active Member

    Same thing I'm afraid
     
  7. PVO_Dave

    PVO_Dave Active Member

  8. Brogan

    Brogan XenForo Moderator Staff Member

    That was going to be my next suggestion, it's what I did for my site when I migrated as we used to have a home.php in the root.

    I actually have this in mine though:
    Code:
    <?php
    header('Location: http://cliptheapex.com/community/pages/home', true, 301);
     
    PVO_Dave likes this.

Share This Page