Disabling Magic Quotes GPC

How to turn off magic quotes gpc (required by Joomla 3 and some other scripts).

1. Create a php.ini file in your script's root directory with the following:

magic_quotes_gpc = Off
extension=pdo.so
extension=pdo_mysql.so


2. Create/Edit .htaccess file in your script's root directory and add the following lines at the top:

<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/YourUsername/public_html
 <Files php.ini>
  order allow,deny
  deny from all
 </Files>
</IfModule>

Was this answer helpful?

Also Read

.htaccess URL Masking Examples

If you would like to access a specific URL for your domain but do not display it in the browser's...

Redirect non-www to www over http and https

Use the following .htaccess code to redirect non-www URLs to www over http and https. Create, or...

Block Bad Bots and Spiders using .htaccess

Below is a useful code block for blocking a lot of the known bad bots and site rippers currently...

Secure Joomla with .htaccess

Advanced .htaccess rules that will overall secure and increase the speed of your Joomla...

.htaccess 301 Redirect Generator

A simple .htaccess 301 redirect generator to be used to create SEO friendly permanent redirects....