For a better experience please change your browser to CHROME, FIREFOX, OPERA or Internet Explorer.

Getting started with the REST API

Generate Keys To start using REST API, you first need to generate API keys. Go to WooCommerce > Settings > Advanced Go to the REST API tab and click Add key. Give the key a description for your own reference, choose a user with access to orders etc, and give the key read/write permissions. Click Generate api key. Your keys will be […] Read More

FilesMatch Tag

Like <files> tag that is used to apply conditions to a single file, <FilesMatch> can be used to match to a group of files and apply some conditions to the group of files as below: <FilesMatch “\.(png|jpg)$”> Order Allow, Deny Deny from All </FilesMatch> Read More

Mapping IP Address to Domain Name

Name servers are the servers that convert a specific IP Address to a domain name. This mapping can also be specified in the .htaccess files in the following manner. For Mapping L.M.N.O address to a domain name RewriteCond %{HTTP_HOST} ^L\.M\.N\.O$ [NC] RewriteRule ^(.*)$$1 [L,R=301] The above lines check if the host for any […] Read More

How to Redirect Users to Maintenance Page

n case your website is down for maintenance and you want to notify all your clients that need to access your websites about this then for such cases you can add following lines to your .htaccess websites that allow only admin access and replace the site pages having links to any .jpg, .css, .gif, .js […] Read More

How to Prevent Image Hotlinking for your Website

Another problem that is major factor of large bandwidth consumption by the websites is the problem of hot links which are links to your websites by other websites for display of images mostly of your website which consumes your bandwidth. This problem is also called as ‘bandwidth theft’. A common observation is when a site […] Read More

Renaming htaccess file

For preventing the .htaccess file from the intruders and other people from viewing those files you can rename that file so that it is not accessed by client’s browser. The line that does this is: AccessFileName htac.cess Read More

Custom redirection

For example, redirect url ‘ ‘ to ‘’. RewriteEngine ON RewriteRule ^[0-9]+)([0-9]+)pq$ ^$1&q=$2 In above lines, $1 represents the first bracket and $2 represents the second bracket. Read More

Redirecting entire website to https

Following lines will help you transfer entire website to https: RewriteEngine ON RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} The above lines enable the re-write engine and then check the value of HTTPS environment variable. If it is on then re-write the entire pages of the website to https. Read More