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

Xenforo htaccess file is causing problems with other directories

Discussion in 'Server Configuration and Hosting' started by averythomas, Jul 8, 2016.

  1. averythomas

    averythomas Member

    When loading a page that I KNOW is there it redirects to the xenforo error page. How do I make it so when i'm on website.com/otherpagethatisnotxenforo it doesn't redirect me to xenforo 404 page?

    Curent htaccess.txt http://pastebin.com/anE3DG14

    Thanks!
     
  2. Tracy Perry

    Tracy Perry Well-Known Member

    Put a custom .htaccess in that directory with it's own error page stanza?
     
  3. averythomas

    averythomas Member

    I can't because the directory is generated dynamically.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    I believe there is a resource for custom error pages.
     
  5. Tracy Perry

    Tracy Perry Well-Known Member

    Then you need to explain a little more how it's "generated dynamically" as it's probably going to require and add-on or some custom code in whatever you are using to "generate it" dynamically.
     
  6. averythomas

    averythomas Member

    This is the page it happens on http://megaminecraft.net/stats/towny/ after clicking a name it redirects to the xenforo error page.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

  8. averythomas

    averythomas Member

  9. averythomas

    averythomas Member

  10. Tracy Perry

    Tracy Perry Well-Known Member

    Let me get this straight - the /stats/towny/player path is completely dynamically generated. There is no sub-directory of /stats (or children under that) in your root directory?
    There is an add-on that changes up the 404 error page (https://xenforo.com/community/resources/goodfornothing-four-oh-four.767/) or you will need to address it via your coding in your method of calling it.
     
  11. averythomas

    averythomas Member

    It does the purpose of changing the xenforo 404 page but I need to remove the error page from the directory http://megaminecraft.net/stats/towny/player/ forever.
     
  12. Tracy Perry

    Tracy Perry Well-Known Member

    Since you didn't answer the first question in the post you quoted, I'm going to assume that you don't know for sure?
    If there IS a subdirectory that is being used to store the files to pull the data, simply putting your modified .htaccess in there should work.
     
    Last edited: Jul 11, 2016

Share This Page