How to block all file access except one using .htaccess

advertisement

htaccessIf you use .htaccess to control the file access, i guess u might came to a situation where you want to block all the files but except one. For an example, you might want to block all the php file access in WordPress wp-content folder using .htaccess. however some of the plugins need to have direct file access (and this is php file too). To solve this problem, you can use htaccess to allow the access for only one file.

To block all access except one file using .htaccess, follow the steps below:-

Continue reading How to block all file access except one using .htaccess »

MySQL 5.5 PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password]

advertisement

mysql-poweredJust upgrade one of my MySQL from 5.0 to 5.5 using WHM MySQL Upgrade tools. The upgrade went smooth. Right after i think everything is ok, some of my website show error while performing db query “Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password]”. That website is being developed using an old symfony 1.4 framework. I can see many people are facing the same problem and there are various solution. And i found one that works for me and i’m going to show it here.

To solve: MySQL 5.5 – PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password], follow the steps below:-

Continue reading MySQL 5.5 PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] »

Prestashop 1.6: How to show price in catalog mode?

advertisement

prestashop-logoBy default, Prestashop do not display price in catalog mode. In order to show price in catalog mode, you have to do some theme customisation to display the price. No worry, i promise the customization will be easy as just find and replace.

prestashop catalog show price, prestashop show price catalog mode

To show price in Prestashop catalog mode, follow the steps below:-

Continue reading Prestashop 1.6: How to show price in catalog mode? »