Limited Time Offer - from £0.80/month
04
DAYS
08
HOURS
40
MINUTES
05
SECONDS
Get Started
×

Knowledge base

Find articles and information about all features, troubleshooting guides,
and other technical information on Hostinger's hosting services.

How to disable magic quotes? (by using .htaccess)

Modified on:
magic quote magic_quotes_gpc magic_quotes

The magic_quotes_gpc directive can be disabled by adding this line to your .htaccess file in the directory, where you want the magic_quotes disabled:

php_flag magic_quotes_gpc off

.htaccess file is located in your public_html folder, on your FTP.

  • Easy Website Builder
  • 99.9% Uptime Guarantee
  • 24/7 Live Support
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Limited Time Special Offer!
From
£
0
80
/mo
Save 90%
Get it!