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

Quick re-direct question


Active member

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



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


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:
header('Location: http://cliptheapex.com/community/pages/home', true, 301);