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

XF 1.5 Possible to move XF from root to a folder, without affecting URL structure?

Discussion in 'XenForo Questions and Support' started by TheBigK, Dec 11, 2015.

  1. TheBigK

    TheBigK Well-Known Member

    I'm wondering whether it'd be possible to move xf from root folder to a subfolder, say 'community', without altering the present URL structure?

    Current URL looks like this: domain.com/threads/thread-title.23/

    I'm guessing if XF resides inside /community/ subfolder, then the URLs will automatically become:
  2. Mike

    Mike XenForo Developer Staff Member

    The URLs would necessarily change. I'm not sure what you're trying to achieve though exactly. If you want those URLs, why is a root installation not workable?
  3. TheBigK

    TheBigK Well-Known Member

    Well, I'm thinking of setting up WordPress in the root; but not disturb my existing URL structure with XenForo. I'm guessing there'd be a way to make WP and XF co-exist in the same directory - sharing an index.php and some common htacess rules.
  4. Mike

    Mike XenForo Developer Staff Member

    If both applications want to rewrite URLs to them, you're going to need to list every single possible URL format for one of them to ensure it is rewritten to there as expected. I suspect you're going to have other problems then as well (with the index.php conflict for example).

    In your example, I'd move XF to a sub-directory and then add rewrites for the common URLs (forums/threads/members) to the sub-directory.
  5. TheBigK

    TheBigK Well-Known Member

    I'm mostly bothered about the thread URLs. Others don't matter; because threads are where all our precious backlinks are. Having moved the forum from subdirectory to the root in the past; I really don't want to touch the URLs again. But looks like I'll eventually have to do that; if there's no solution.

    I did try installing both systems in same folder on my localhost; and they worked fine except that the WordPress had issue with seo-friendly URLs. I don't remember what I really did; but I do remember changing the index file reference inside: library/XenForo/Link.php.

    I think with a few tweaks; I should be able to achieve what I'm trying to do. :notworthy:

Share This Page