Save up to 30% on Dedicated Servers – Chat Now!

Your Webhosting Questions
Answered by the Webhosting Experts
Tags +

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



Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your account or if you are on the go, please reach out from your valid account email to us here at: [email protected] We are also available to you through our phone and live chat system 24/7/365.