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

XF 1.1 Trouble changing forum sub-directory & URL

Discussion in 'Troubleshooting and Problems' started by WhoIsDo, Jul 8, 2013.

  1. WhoIsDo

    WhoIsDo Active Member

    Hello,

    I recently attempted to move my website from the root to a sub-directory, but the links and images now appear broken. I've already navigated to the "Basic Board Information" section and changed the forum URL from the root to the sub-directory, but that hasn't fixed the issue.

    Original: mywebsite.com
    New: mywebsite.com/community/

    However, I'm seeing where the URLs are looking as follows:

    What's showing: http://mywebsite.com/community/forums/site-announcements.2/

    That URL doesn't actually show anything, however. Just gives me the following message: "The requested URL /index.php was not found on this server."

    Any idea what I can do to correct this issue?
     
    Last edited: Jul 8, 2013
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    You cannot remove the /forums/ route from the URL, it is needed to properly route the software and give a proper response.
     
  3. WhoIsDo

    WhoIsDo Active Member

    Even with the /forums/ included in the URL, I'm still having an issue where the URLs aren't working for me at this point. Any idea what could be causing that?
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Are you receiving any errors?
     
  5. WhoIsDo

    WhoIsDo Active Member

    Looks like the URL issue was tied to my .htaccess being in the root, and not in the forum directory. However, the images aren't working for me still (most of them). It looks like the image URLs are missing the "community" portion of the URL. Is there a section to update that URL that I'm currently missing?
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    Within posts or in your style? Try setting / updating the style property imagePath. If its images inserted through BB Code in the posts, you'll need to use Kier's resource to update the posts easily.
     
  7. WhoIsDo

    WhoIsDo Active Member

    These are within the actual style. Just to make sure I'm looking at the right imagePath, could you specify the location?
     
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    Its under the General Style Properties category. Its the first field under "Settings".
     
  9. WhoIsDo

    WhoIsDo Active Member

    We're using the Black Responsive layout, so I see "styles/black_responsive" in that field which appears to be correct.

    I tried adding "community/styles/black_responsive" but that didn't seem to fix the issue either.
     
  10. Jeremy

    Jeremy XenForo Moderator Staff Member

    styles/black_responsive should be correct. You are talking about style images, correct?
     
  11. WhoIsDo

    WhoIsDo Active Member

  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    Take "community/" out of @imagePath (the style property). After you do that, clear your cache, do they reappear?
     
  13. WhoIsDo

    WhoIsDo Active Member

    Looks like there was some custom styling done, so I've moved the "images" directory to the root and that seemed to fix just about all of the images. I just have to figure out where the node icon images are being referenced and that should fix my issue.

    Thank you for helping me troubleshoot this!
     

Share This Page