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

Installing WordPress in a subdirectory

Discussion in 'XenForo Questions and Support' started by zastavra, Jan 17, 2015.

  1. zastavra

    zastavra Formally Stevez

    I have Xenforo installed in the root directory and I just installed WordPress in /articles sub directory. Well, everything is working fine using the WordPress default URL structure but when I am changing it to domain.com/articles/%postname%/ the WordPress post is getting redirected to Xenforo's 404 page not found.

    Any idea of what is wrong here?
    Last edited: Jan 17, 2015
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Do you have an articles route in your XenForo installation?
  3. zastavra

    zastavra Formally Stevez

    No I have not. What should I use as Find Route and Replace With?
  4. Mike

    Mike XenForo Developer Staff Member

    If you temporarily remove XF's .htaccess file, does it work? I would presume no, which likely points to an issue with the WP .htaccess configuration. XF won't be involved in any way if there's an articles sub-directory (unless there's a 404 within that the articles/.htaccess file doesn't grab).
  5. zastavra

    zastavra Formally Stevez

    I use nginx as a Web server, so I guess the virtual block configuration must be involved with this.

    So, is it something specific that I should look for?
    Last edited: Jan 18, 2015
  6. zastavra

    zastavra Formally Stevez

    I think adding
    location /articles/ {
            try_files $uri $uri/ /articles/index.php?$uri&$args;
    in the server block config is fixing the problem. It seems to work fine now.


Share This Page