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

Converting htaccess to Cherokee

#1
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

Paths data/ js/ styles/ install/ favicion\.ico
Handle as Static

Extensions PHP

File Exists
List & Send

Default
Internal - /?(.*) TO /index.php?/$1
Any help would be greatly appreciated.
 

Jake Bunce

XenForo moderator
Staff member
#2
Does it give you a logout confirmation window?

Make sure you don't have a directory called "logout" inside of your forum directory.
 
#3
Does it give you a logout confirmation window?

Make sure you don't have a directory called "logout" inside of your forum directory.
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".
 

Jake Bunce

XenForo moderator
Staff member
#4
#5
I am limited in my access. But it appears that no query strings are getting through, such as _xfToken in the logout link:

http://bioshub.com/logout/?_xfToken=3,1316550326,c6b044d53e60270643bc7c9f1587e6c2c91ece91

...or the search type when you try to Search Threads and Posts:

http://bioshub.com/search/?type=post

So apparently your rewrite rules are omitting the query string. I have never used Cherokee before. I am looking for documentation right now. I will report back...
I'll poke around myself. Because if it's query strings, I think it'll be reasonably easy to figure out.
 
#6
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