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

Quick re-direct question

PVO_Dave

Active member
#1
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.
 

Brogan

XenForo moderator
Staff member
#2
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?
 

Brogan

XenForo moderator
Staff member
#8
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);