.htaccess problem under LiteSpeed, not parsing variables in 'Header set link' instruction

Discussion in 'Bug Reports' started by allewreK, Jun 3, 2014.

  1. allewreK

    allewreK New Member

    If you add that kind of instrutctions in .htaccess :

    Code:
    Header set Link '<http://%{HTTP_HOST}e%{REQUEST_URI}e>; rel="canonical"'
    Variables are not parsed.

    If I disable Apache, variables are parsed.

    Best regards.
     
  2. mistwang

    mistwang LiteSpeed Staff

    LiteSpeed does not support using variables in "Header" directive yet, we add that feature to our to do list. I will be implemented in our 4.2.x or in 5.0 release.
     
    allewreK likes this.
  3. allewreK

    allewreK New Member

    Ok, that's great thanks ! Hope to see it soon.
     
  4. Luciano Passuello

    Luciano Passuello New Member

    Sorry to ressurect an old thread, but I am in the need of this same feature.
    Since 5.0 is out, does LSWS now support setting variables in header directive?
     
    Last edited: May 17, 2015 at 2:13 PM
  5. NiteWave

    NiteWave Administrator

    the answer is Yes. you can upgrade to 5.0 to see if it meets your requirement 100%.
     
  6. Luciano Passuello

    Luciano Passuello New Member

    Glad to know, thanks for your reply!
     

Share This Page