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

XF 1.4 Help regarding url structure

Discussion in 'XenForo Questions and Support' started by PhobiaForum, Jan 18, 2016.

  1. PhobiaForum

    PhobiaForum Member

    I think I made an error when I set my site up as the forum comes off the main home page under a directory called "forum". So when I go to the actual forum and look at a sub-forum the url is www.phobiasupportforum.com/forum/forums........



    It is not really an issue for threads but I would like to change the "forums" reference to something different. I was wondering:-

    Is this possible?

    Would I invalidate any third party links to the forum under the current url structure if I change it?

    The site has not really been launched yet so it would not be the end of the world if the new structure for the sub-forums was something like forum/sections.

    Any help would be appreciated.


  2. Brogan

    Brogan XenForo Moderator Staff Member

    If you don't want to or are unable to install in the root (due to other software being installed there), you have two options.

    1. Rename the /forum directory XF is installed in, to something like /community, which would give you domain.com/community/forums.
    2. Use a Route Filter (https://xenforo.com/help/route-filters/) to change the /forums route, which would result in domain.com/forum/something.
  3. PhobiaForum

    PhobiaForum Member

    I presume if I change the name of the directory which has the XF code then Google and the other search engines would pick up on the new url structure fairly quickly and relist forum pages under the new url?

    I think community/forum looks better - what do you think?
  4. James

    James Well-Known Member

    Just changing the directory wouldn't be enough you'd need to put 301 redirects in place via .htaccess.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Is it open to guests and therefore Google?

    If not, there is no need to implement redirects as none of the content will have been indexed.

    If indexing has taken place, you can either implement redirects or just take the hit and Google will eventually update the URLs.
  6. PhobiaForum

    PhobiaForum Member

    Thanks for your advice - I have changed the directory housing the XF code to community and as the forum is not really busy yet I will just take the short term hit until Google catches up with the new URL structure. This should n't take too long should it?
  7. Brogan

    Brogan XenForo Moderator Staff Member

    No, it shouldn't take too long.

    I believe you can log in to GWT and set a higher crawl rate and possibly even remove invalid URLs.
  8. PhobiaForum

    PhobiaForum Member

    Thats it done now - didn't bother with the redirect as there is already one there for wordpress so might confuse things. I would guess no more than a week or so for Google to re-index?
  9. James

    James Well-Known Member

    Use your Google webmaster tools and submit your url and fetch as Google. Then you click URL and all linked pages and it should speed up the reindexing.

Share This Page