Please upgrade here. These earlier versions are no longer being updated and have security issues.

Vanilla 2 running on lighttpd - problem with rewrite

edited July 2010 in Vanilla 2.0 - 2.8
url.rewrite = ( "^/(applications|cache|conf|js|library|plugins|themes|uploads)/(.*)$"=>"/$1/$2", "^/([^\?]+)(\?(.*))$" => "/index.php?p=$1/$2", "^(.*)$"=>"/index.php?p=$1" )

this are my rewrite rules, but there are some errors in vanilla :(
f.e. http://host/profile/1/username -> Change My Picture popup generating 404 not found :(

any idea why?

Comments

  • ToddTodd Chief Product Officer Vanilla Staff
    Are you getting a 404 when you try http://host/index.php?p=profile/1/username?
  • yep, Page Not Found :/
  • I am also getting the same error. Thought at first it could be my theme, tried another theme and it still throws me to a 404 . Using vanilla 2 newest version.
  • I think, the most problematic thing is url handling inside javascripts.

    When you're visiting host/profile/1/user and click for example Change My Picture link - the popup shows 404, but the same link as right-click Open Link in New Tab works perfect.

    Any idea?
  • Did you ever figure this out? I'm in the same pickle as you. I'd really like to use friendly URLs, but I don't quite understand why this works when you open it in a new tab but not when you click it.
  • nope, still waiting for 2.0.4, hope it'll be fixed.
  • @tece: 2.0.4 (well, 2.0.6) is here! Any further development on this front? I tried using these rewrite rules and I still got the 404s on the change picture pop up. I haven't had a chance yet, but I was going to do some more playing around now that I've 2.0.6 installed.
  • I give up. Moved to apache2. now = no problems :)
  • TimTim Operations Vanilla Staff
    Moved to apache2
    image

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • I give up. Moved to apache2. now = no problems :)
    Have you tried my kung fu above? Everything works like a charm on lighty.
    Lighttpd's mod_rewrite is kinda black box, but I've been able to duplicate every apache's rewrite rule so far without heavy artillery like mod_magnet and lua.
    KISS-way FTW.
Sign In or Register to comment.