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

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

Was this answer helpful?

Also Read

.htaccess RewriteRule Examples

Here are some useful mod_rewrite RewriteRule redirect examples that you can use in your .htaccess...

Speed up WordPress Leveraging Browser Caching via .htaccess

Insert the following code to your .htaccess file to increase the speed of your WordPress website...

GET/POST Security with .htaccess

Below is a useful code to block out some common exploits for GET/POST values with .htaccessSimply...

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...

Do you support mod_rewrite for apache?

Yes, mod_rewrite is enabled on your server. For more information on what mod_rewrite is and how...