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

Redirect Problem on Conversion from IP Board

Discussion in 'Installation, Upgrade, and Import Support' started by thefreekick, Feb 18, 2013.

  1. thefreekick

    thefreekick Member


    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:

    Search that doesn't work:
    "Allianz Football League 2013 thefreekick.com" directs to:

    which isn't the correct format of the link and produces an error. It should go instead to:

    Any ideas what I've done wrong?

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

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

    #	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
    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]
    That should cause the request to go to the redirect script, whereas currently it is not.
  3. thefreekick

    thefreekick Member

    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?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yeah try:

    RewriteBase /board
    Remove the #.
  5. thefreekick

    thefreekick Member

    Thanks for your help Jake - that fixed it.

    Spoke too soon, still not working unfortunately.
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Then try specifying the path on this line:

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

    RewriteRule ^.*$ /board/ips2xf.php [NC,L]
    If the problem persists then give me admin and FTP access. I will take a look.
  7. thefreekick

    thefreekick Member

    That doesn't seem to have solved it either. I'm sure I'm missing a step somewhere but I can't figure it out. I'll send you the relevant details. Thanks for your help Jake.
  8. AWS

    AWS Well-Known Member

    Since the root of the site is in /board you only need

    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.
  9. thefreekick

    thefreekick Member

    Thanks - not sure why the links weren't working for me but they do seem to be correct now. I changed the rewrite rule as you suggested anyway.

Share This Page