.htaccess SetEnv not working

Status
Not open for further replies.

lotsofto

New Member
Messages
2
Reaction score
0
Points
1
I'm a noob. Thanks for any help! I put this in my .htacces file:

SetEnv VWX_INCLUDE_DIR /home/lotsofto/include

But it doesn't show when I try to display it in my code as follows:

print_r($_SERVER);

It works on my test server at home. Are there any limitations I should know about when using x10hosting? Another strange thing is I made a phpinfo.php file which has only one line:

<?php phpinfo(); ?>

It shows nothing (see http://lotsoftomatoes.com/phpinfo.php), but works correctly at home.

Thank you!
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. They are using Litespeed, not Apache. Litespeed does not support all of Apache's .htaccess directives. Apparently SetEnv is one.

Try adding at the top of your .htaccess:

Code:
RewriteRule ^(.*) $1 [E=VWX_INCLUDE_DIR:/home/lotsofto/include]

2. Last time I checked, they had disabled phpinfo() for security reasons.
 

Sharky

Community Paragon
Community Support
Messages
4,399
Reaction score
94
Points
48
Resolved so...closed!
 
Status
Not open for further replies.
Top