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

XF 1.4 redirect using htaccess question

#1
hi,
i was just reading through this thread: https://xenforo.com/community/threads/frequently-asked-questions.5183/
and doing some searching. but i could not find a .htaccess redirect from root to root.

the vb3.8 is install in root /public_html/
what im wanting to do is, change the location of vbulletin into a folder say public_html/oldvb.
then move xenforo to the root where vbulletin was, as ive finished converting from vb3 to xenforo.

now i need to find away to redirect all old urls from root to root if that makes sense?

i know how to redirect old urls from folder to folder, or root to folder etc. just wondering about redirecting example root installation:
http://www.vb3.com/forumdisplay.php?f=2
to
http://www.xenforo1.com/index.php?forums/headquarters.2/

i see this, but it has a folder called community:
Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) /community/ [R=301]
not sure what to replace community with if forums are in root.
thanks.
 
#3
thanks jake. good job ;)

on a side note, to remove index.php in my url, all i do is rename htaccess text to .htaccess, thats it yeah mate please?
and by doing this, should not effect redirection to new urls from that addon?

thanks.
 

Jake Bunce

XenForo moderator
Staff member
#4
thanks jake. good job ;)

on a side note, to remove index.php in my url, all i do is rename htaccess text to .htaccess, thats it yeah mate please?
and by doing this, should not effect redirection to new urls from that addon?

thanks.
In addition to the .htaccess file there is an admin option which must be enabled:

https://xenforo.com/help/friendly-urls/

Friendly URLs will not interfere with your vB3 redirects.
 
#7
sweet, its that easy, good job.

sorry, just looking at Index Page Route this should be left blank ?
like, soon as i move xenforo to root, i no longer need to set Page Route?

thx
 

Jake Bunce

XenForo moderator
Staff member
#8
sweet, its that easy, good job.

sorry, just looking at Index Page Route this should be left blank ?
like, soon as i move xenforo to root, i no longer need to set Page Route?

thx
The Index Page Route is normally "forums" which is the default index page. For example, if you want your root URL to show the XF member list then you could enter "members" there.
 
#10
You are using the standard naked vB3 URLs, so these redirect scripts should work for you:

https://xenforo.com/community/resources/redirection-scripts-for-vbulletin-3-x.264/

Upload them to your web root where vB was and XF is.
hi, sorry.
i set the redirect file, but all old threads from google are redirecting to forum home page/root.

EDIT: sorry, stuffed up the import_log name. fixed, thanks.

EDIT: actually, clicking archive/index.php redirects to home root for some reason. though, posts threads etc work fine.
 
Last edited: