Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

Set register_globals through .htaccess

Issue: How to set register_globals through .htaccess

The most common setting that clients want to change are the “register_globals” settings. If you want to enable register_globals, you will need to create a .htaccess file in

your site’s main directory (or the main directory of your site that contains PHP hosting scripts).

Your .htaccess file should contain the following line:

php_flag register_globals on

If you want to disable register_globals then your .htaccess file should contain the following line:

php_flag register_globals off

Share on Twitter
Share on Facebook