Redis implementation for Windows

Install Redis Server:

Download the redis client and server from below URL (download the latest 64 bit or 32 as applicable):

Now after installing it start the redis service from the windows services list (service name will be redis).

Install Redis Interface Library: (for php 5.3) ( – for php 5.2)

From the above link download the dll file for redis and add it to extension directory of PHP.

Now update the php.ini file to point this new extension.


The implementation is written in PHP code, I have made the changes to

/base/meditab/med_db.php (Right now it has been done for MEM and MOS)

These changes make sure that if there is any update in any table the query for that table will be read from database else it will be from Redis cache.

Redirect http to secure https url for a specific domain name

We had a wildcard certificate * We have other website too hosted on the same server like
Now we don’t have a certificate for so, we want to redirect when someone types to

So when a user types they should be redirected to But should not redirect to instead of the fact that they both are hosted on same server and share same .htaccess file.

Here is the solution: (add this in your main root .htaccess file)
RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_NAME} ^(.*
RewriteCond %{REQUEST_URI} !^(.*.wsdl) ##bypass wsdl file calls
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}