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

Converting htaccess to Cherokee

Discussion in 'Troubleshooting and Problems' started by Bios Element, Sep 20, 2011.

  1. Bios Element

    Bios Element Member

    Hello folks,

    I'm attempting to run XenForo with Cherokee and got the URL rewriting about 90% complete. Problem is, I'm unable to logout. No errors, it just won't log me out. I know it's the rewriting since when I disable it, everything works fine.

    My Cherokee Config

    Any help would be greatly appreciated.
     
    SimSonic likes this.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Does it give you a logout confirmation window?

    Make sure you don't have a directory called "logout" inside of your forum directory.
     
  3. Bios Element

    Bios Element Member

    It does give me the popup window and then the /logout/ page also shows with a logout button, but it doesn't seem to want to take it.

    You can see it live here http://bioshub.com/.
    I made a test account. Username: "Test User" Password: "password".
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. Bios Element

    Bios Element Member

    I'll poke around myself. Because if it's query strings, I think it'll be reasonably easy to figure out.
     
  6. Bios Element

    Bios Element Member

    I figured it out.

    My problem was this. My default handler needed to have a redirect for 'extra' query strings, not just one. So it's now two internal redirect rules.

    ^/(.*)\?(.*)$ TO /index.php?q=$1&$2
    ^/(.*)$ TO /index.php?q=$1
     
  7. Bios Element

    Bios Element Member

    Or not, since it only works maybe 50% of the time. >.>
     
  8. Bios Element

    Bios Element Member

    Got it. In the end the solution was

    ^.*$ TO index.php
     
    Jake Bunce likes this.

Share This Page