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

XF 1.3 how to handle vbulletins 404 errors ?

Discussion in 'Troubleshooting and Problems' started by tsak76, May 14, 2014.

  1. tsak76

    tsak76 Active Member

  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. tsak76

    tsak76 Active Member

    yea but there are many vb pages from addons and stuff not used in xf. i am talking about the pages of vb that are not threads posts members or forums
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Have you considered implementing additional redirects for those?

    Just add them to the .htaccess file.
     
  5. tsak76

    tsak76 Active Member

    there are no redirects for arcade.php and useless stuff like that, they are NOT existant in xf and my question is how to handle those 404 ?
     
  6. Liam W

    Liam W Well-Known Member

    They don't exist, so just leave them in place - what else are you supposed to do?
     
  7. tsak76

    tsak76 Active Member

    vb was in another dir than xf so it shows a white page saying not found. i want those vb pages to show the xf header footer page not found
     
  8. tsak76

    tsak76 Active Member

    @Mike any idea plz ?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Why do you want to redirect to an error page?

    Just redirect to the site index.
     
  10. tsak76

    tsak76 Active Member

    for the same reason xenforo does it http://xenforo.com/community/xcxcxc
    not sure if this is good for seo but anyway i whould put in vb folder ht access ? ErrorDocument 404 www.site.com ?
     
  11. Mike

    Mike XenForo Developer Staff Member

    If the files don't exist, they'll just return a 404 anyway. If you want to modify what is displayed for the 404, you can use the ErrorDocument line. Really, the easiest thing is to just try it and see if it functions how you want (it may not).
     
  12. tsak76

    tsak76 Active Member

    well i want this 404 page to be the xf error page and not the blank page of apache saying the
    Not Found
    The requested URL /forums/clientscript was not found on this server.

    how to use the ErrorDocument line since vb was on a different folder than xf
     
    Last edited: May 14, 2014
  13. Mike

    Mike XenForo Developer Staff Member

    You either need to create your own custom 404 page that mimics your XF look or you need to do an actual redirect to a URL that 404's in XF (which will redirect the client, which may not be ideal but it's really the only option).
     
  14. tsak76

    tsak76 Active Member

    i just had to go to the vbulletin folder and this to the .htaccess
    ErrorDocument 404 /home/user/public_html (which is the xf path) NOW All 404 vb pages show the xf error page and the server returns 404 request
     
  15. Renegade

    Renegade Well-Known Member

    How do I customize the xf 404 page? I mean which template to edit?
     
  16. RoldanLT

    RoldanLT Well-Known Member

    I think it's "error" template.
    For 404 page, on my case I'm using BD widget to target all error pages.
     
  17. Renegade

    Renegade Well-Known Member

    Thanks. My problem is that the forum is in a folder now and I am not able to point the 404 to an error page inside the forum. Will have to mimic the forum page as Mike suggested.
     

Share This Page