Vanilla 2 running on lighttpd - problem with rewrite
  • tecetece
    Posts: 7

    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?

  • ToddTodd
    Posts: 1,436
    Are you getting a 404 when you try http://host/index.php?p=profile/1/username?

    Vanilla co-founder

  • tecetece
    Posts: 7
    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.
  • tecetece
    Posts: 7
    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?
  • LykaonLykaon
    Posts: 101
    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.
  • tecetece
    Posts: 7
    nope, still waiting for 2.0.4, hope it'll be fixed.
  • LykaonLykaon
    Posts: 101
    @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.
  • tecetece
    Posts: 7
    I give up. Moved to apache2. now = no problems :)
  • TimTim
    Posts: 1,547
    tece said:

    Moved to apache2

    image

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • tece said:

    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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 2

JhauraWpaintballer82