{"id":1431,"date":"2019-02-08T10:36:02","date_gmt":"2019-02-08T10:36:02","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583527-how-to-disable-magic-quotes-using-htaccess\/"},"modified":"2019-02-08T10:36:02","modified_gmt":"2019-02-08T10:36:02","slug":"1583527-how-to-disable-magic-quotes-using-htaccess","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583527-how-to-disable-magic-quotes-using-htaccess\/","title":{"rendered":"How to Disable Magic Quotes Using .htaccess"},"content":{"rendered":"<p class=\"no-margin\">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. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To disable it, open the <b>.htaccess<\/b> file using the <b><a href=\"\/support\/7949267-how-to-use-the-file-editor-at-hostinger\" target=\"_blank\" class=\"intercom-content-link\">File Editor<\/a><\/b>. If the file is not present in the <b>public_html<\/b> folder of your website, <b><a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">create it<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Next, add the following line:<\/p><p class=\"no-margin\">\n<\/p><pre><code>php_flag magic_quotes_gpc off<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once done, click on <b>Save<\/b> to apply the changes. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>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. To disable&#8230;<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[218],"tags":[],"class_list":["post-1431","post","type-post","status-publish","format-standard","hentry","category-supported-technologies-and-functions"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583527-how-to-disable-magic-quotes-using-htaccess\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583527-como-desactivar-las-comillas-magicas-mediante-htaccess-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583527-comment-desactiver-magic-quotes-en-utilisant-htaccess-at-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583527-como-desativar-a-magic-quotes-usando-htaccess\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1431"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1431\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}