How to turn Magic Quotes On
Written by Daryl Baratta   
Saturday, 04 November 2006

Are you having trouble figuring out how to turn the magic_quotes_gpc on in your Joomla installation? There is a simple method if you have access to your htaccess file. You can add the following line into the file - php_value magic_quotes_gpc 1 - , the 1 means on and 0 means off. You can most likely add this line anywhere in the .htaccess file. Some say the end and some don't say so I just added it at the beginning or under Rewrite rules. It should not matter but always check with your hosting company first.

If you are not experienced with using or editing the htaccess file it would be best to find someone who is. I have used and edited many Joomla htaccess file. There are numerous features and security issues that depend on this file. Not just with Joomla but most database driven type sites. I am not aware of all the things a htaccess file can accomplish but, I do know a few important ones. The newest version of Joomla contains an advanced htaccess file that includes some security features to help against unwanted access to files on your server.

The most popular use of the htaccess file is for SEF URLs , short for search engine friendly universial resourse locator. I am of the opinion that sef urls are not all they are said to be. I have mentioned or questioned this in the past. My point is, if a popular high ranking Joomla site does not use them, why are they still number one in the search engines? My answer would be, your search engine ranking as nothing to do with search engine friendly urls. Like I also mention in this another article, there are hundreds of SEO experts that will have a different opinion and I can respect that!

This method is not going to work for everyone. You will have to know what your server administrator has set-up. Keep a copy of your htaccess file before you start making changes. If it doesn't work you simply put the old htaccess file back. Your site will go back to the same as before you started making changes. It is important to work on your htaccess file from a hosting panel that is not on the same IP address. If you are working on your htaccess file from your sites IP address your site may disappear on you. This can be very stressful if you didn't expect it or have never done this type of work before. If you site disappears you need to get your last copy of the htaccess file uploaded to over-ride the one that isn't working.

blog comments powered by Disqus
 

Comments  

 
0 #2 May Not Work on your ServerDaryl Baratta 2007-07-28 17:55
Hi Jomar,

Since I wrote this article several months ago I have come across servers or hosting companies that this will not work on. If it doesn't work you need to contact your hosting company. They should know what you need to do, if they will let you.

Regards and Thank you for the comment.
Quote
 
 
0 #1 Doesn't work for meJoemar 2007-07-28 15:31
This doesn't seem to work for me. I still see "PHP magic_quotes_gp c setting is `OFF` instead of `ON`" warning in the backend.
Quote
 

Add comment

We will publish any comments that are related to the topic and that do not contain any commercial links or scam,spam fraud.


Security code
Refresh

< Prev
IP: 38.107.191.115
Country: United States
RocketTheme Joomla Templates