[solved] $_SERVER["SHOW_PATH"] not working

Discussion in 'Install/Configuration' started by elr90, Aug 28, 2011.

  1. elr90

    elr90 New Member

    Hi

    After we replaced Apache with LiteSpeed, the $_SERVER["SHOW_PATH"] is no longer working.

    Do any of you have the same issue? And is there a way to fix this, so show_path will start working again? Right now, it just returns a blank. DOCUMENT_ROOT works just fine.

    Thanks

    /e
    Last edited by a moderator: Aug 28, 2011
  2. mistwang

    mistwang LiteSpeed Staff

    SHOW_PATH is not a standard variable, how it is set? via rewrite rule?
  3. elr90

    elr90 New Member

    Yes. The .htaccess contains (amongst others):

    SetEnv SHOP_PATH /home/www/public_html/

    but after we switched from apache to litespeed this no longer works. It seems the rewrite rules in the .htaccess is working just fine.
  4. mistwang

    mistwang LiteSpeed Staff

    setenv is not supported, please use

    RewriteRule .* - [E=SHOP_PATH:/home/www/public_html/]

    instead.
  5. elr90

    elr90 New Member

    Works like a charm - thank you very much.

Share This Page