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

XF 1.5 How to move Xenforo from sub domain to sub folder

Discussion in 'Troubleshooting and Problems' started by chevp, Aug 15, 2015.

  1. chevp

    chevp Member

    So, i decided to move my forum from the sub domain to sub folder.

    forum.example.com "TO" www.example.com/forum

    When I tried moving all the files to a different directory. All of the threads and forums received page not found error
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You likely didn't copy the hidden .htaccess file and have friendly URLs enabled.

    Rename the htaccess.txt file to .htaccess.
  3. chevp

    chevp Member

    Thanks, I managed to moved it.

    How do i update new urls ?
  4. Mike

    Mike XenForo Developer Staff Member

    You'd be better off placing redirects for the entire old URL to the new URL (anything from forum.domain.com/* will be redirected to domain.com/forum/*). There are a few approaches to this. Here's one example: Simple Redirect Subdomain to a Directory
    jamalfree likes this.
  5. chevp

    chevp Member

    Thanks for the help

    @Mike In search engine result page, some of the threads has the old URL. For exaple

    The new url is website.com/forum

    but it shows forums.website.com for some of the threads
  6. Mike

    Mike XenForo Developer Staff Member

    As long as you have 301 redirects in place, this should be updated over time as the URLs are recrawled.

Share This Page