Redirect Problem on Conversion from IP Board

thefreekick

Member
Hi

I recently converted my forum (thefreekick.com) from IP Board to XF. Loving the new software so far.

After finishing the import of posts etc I tried to follow the steps to get redirects working properly but it doesn't seem to be functioning properly and I can't work out what I did wrong.

I used the Import Redirection step (from http://xenforo.com/help/import-redirection/) and I created a new table and uploaded the relevant files and adjusted the config file (I think).

Now if I google threads on my forum some of them direct to the correct location on my XF install but some of them just seem to get misdirected.

Example of a search that works:
"thefreekick.com 2012 Club Championships" finds and directs correctly to:
http://www.thefreekick.com/board/index.php?threads/the-official-2012-club-championship-thread.15819/

Search that doesn't work:
"Allianz Football League 2013 thefreekick.com" directs to:
http://www.thefreekick.com/board/index.php?/topic/16838-allianz-football-league-2013/

which isn't the correct format of the link and produces an error. It should go instead to:
http://www.thefreekick.com/board/index.php?threads/allianz-football-league-2013.16525/

Any ideas what I've done wrong?

Thanks
 
Did you add the rewrite rules to the .htaccess file?

Rich (BB code):
#	Mod_security can interfere with uploading of content such as attachments. If you
#	cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#	SecFilterEngine Off
#	SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	

	#	If you are having problems with the rewrite rules, remove the "#" from the
	#	line that begins "RewriteBase" below. You will also have to change the path
	#	of the rewrite to reflect the path to your XenForo installation.
	#RewriteBase /ip.board
	
	# IPS Rewrite Rules
	RewriteCond %{REQUEST_URI} /(topic|forum|user)/ [OR]
	RewriteCond %{QUERY_STRING} (^|&)show(topic|forum|user)= [OR]
	RewriteCond %{QUERY_STRING} ^/(topic|forum|user)/ [OR]
	RewriteCond %{PATH_INFO} ^/(topic|forum|user)/
	RewriteRule ^.*$ ips2xf.php [NC,L]

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d	
	RewriteRule ^.*$ - [NC,L]
	
	RewriteRule ^(data|js|styles|install) - [NC,L]
	RewriteRule ^.*$ index.php [NC,L]
</IfModule>

That should cause the request to go to the redirect script, whereas currently it is not.
 
Did you add the rewrite rules to the .htaccess file?

Rich (BB code):
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>
 
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
 
<IfModule mod_rewrite.c>
RewriteEngine On
 
 
# If you are having problems with the rewrite rules, remove the "#" from the
# line that begins "RewriteBase" below. You will also have to change the path
# of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /ip.board
 
# IPS Rewrite Rules
 RewriteCond %{REQUEST_URI} /(topic|forum|user)/ [OR]
 RewriteCond %{QUERY_STRING} (^|&)show(topic|forum|user)= [OR]
 RewriteCond %{QUERY_STRING} ^/(topic|forum|user)/ [OR]
 RewriteCond %{PATH_INFO} ^/(topic|forum|user)/
 RewriteRule ^.*$ ips2xf.php [NC,L]
 
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
 
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>

That should cause the request to go to the redirect script, whereas currently it is not.
That's exactly what my htaccess looks like. Sorry I'm not very good at the htaccess stuff - do I need to change something in that file (like removing the # before RewriteBase) or should it just work like that with no specific paths to my forum etc?
 
Then try specifying the path on this line:

Code:
RewriteRule ^.*$ ips2xf.php [NC,L]

Like so:

Code:
RewriteRule ^.*$ /board/ips2xf.php [NC,L]

If the problem persists then give me admin and FTP access. I will take a look.
 
Since the root of the site is in /board you only need

Code:
RewriteBase /

I checked Google and it looks like Google already picked up the new thread URL's. I went 10 pages deep and not 1 URL was from the old setup. Still you want to get the redirects working. Your rules match what I had when I converted and all my content redirected correctly so it must be something with the ID's saved in the database.
 
Back
Top Bottom