Configuring the .htaccess file
The typical WordPress .htaccess file looks similar to this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I would suggest any additions to the .htaccess file to be added after # END WordPress. This will ensure you don’t break any of the WordPress based .htaccess functions. Before making any changes to your .htaccess file I strongly recommend backing it up and keeping it stored in a safe place!
Protect .htaccess
.htaccess file is open to attack. This snippet basically stops anyone viewing any file on your site that begins with “hta”, this will protect it and make it somewhat safer.
<Files ~ “^.*\.([Hh][Tt][Aa])”>
order allow,deny
deny from all
satisfy all
</Files>
Protect wp-config.php
wp-config.php is the file in your root directory that stores information about your site as well as database details, this file in particular we would not want to fall into the wrong hands.
In your .htaccess add the following to prevent any access to the wp-config.php file:
<Files wp-config.php>
order allow,deny
deny from all
</Files>
Banning bad users
If you have the same IP address trying to access your content or trying to brute force your admin pages, you can ban this person using .htaccess with this simple snippet:
<Limit GET POST>
order allow,deny
deny from 202.090.21.1
allow from all
</Limit>
This person will now not be able to access your site. You can add more by replicating the deny line, for example:
<Limit GET POST>
order allow,deny
deny from 202.090.21.1
deny from 204.090.21.2
allow from all
</Limit>
No directory browsing
As WordPress is now so popular many people know the structure of a WordPress install and know where to look to discover what plug-ins you may use or any other files that might give away too much information about your site, one way to combat this is to prevent directory browsing.
# directory browsing
Options All -Indexes
Admin access from your IP only
You can limit who can access your admin folder by IP address, to do this you would need to create a new .htaccess file in your text editor and upload to your wp-admin folder.
The following snippet denies access to the admin folder for everyone, with the exception of your IP address, but please note if you have a dynamic IP, you might have to regularly alter this file otherwise you will be denied access yourself!
order deny,allow
allow from 202.090.21.1 (replace with your IP address)
deny from all
Prevent Access To wp-content
The wp-content folder contains images, themes and plug-ins and it’s a very important folder within your WordPress install, so it makes sense to prevent outsiders accessing it.
Create a seperate .htaccess file which must be added to the wp-content folder, it allows users to see images, CSS etc … but protects the important PHP files:
Order deny,allow
Deny from all
<Files ~ “.(xml|css|jpe?g|png|gif|js)$”>
Allow from all
</Files>
Individual File Protection
There are certain files you might want to protect individually rather than blocking a whole folder or selection. The example snippet shows how you would prevent access to the .htaccess file and will throw a 403 if accessed by anyone. The file name can be changed to whatever file you wish to protect:
# Protect the .htaccess
<files .htaccess=”">
order allow,deny
deny from all
</files>








































A view of the impressive Sun Temple in Modhera, Gujarat. The eight Dikpalas are the Guardians of Direction, guarding specific directions of space. They are traditionally represented on the walls and ceilings of Hindu temples.
Built of soft bluish-grey soapstone, the Chennakeshava temple at Belur, Karnataka is a jewel of Hoysala architecture.
Built of soft bluish-grey soapstone, the Chennakeshava temple at Belur, Karnataka is a jewel of Hoysala architecture.
The cave temple at Seeyamangalam, 80 km from Chennai, was constructed by the Pallava king Mahendravarman I in the 7th century. The temple is dedicated to Stambeshwara, a form of Shiva.
The Chausat Yogini Temple, or the temple of 64 yoginis, is located atop a hill in Bedaghat, some 20 km from Jabalpur in Madhya Pradesh.
Thanjavur, Tamil Nadu Thanjavur, 342 km from Chennai is where Tamil Nadu’s cultural heart beats. Its monumental shrine to Brihadishwara called a Great Living Chola Temple. Built by Raja Raja Chola I in 1011 to commemorate the victory of the Chola dynasty, this architectural gem remains brings together religious fervor and architectural grandeur as it did centuries ago.
Orchha, Madhya Pradesh Built on the Betwa River in Madhya Pradesh, the ancient city of Orchha houses the citadels and cenotaphs of the Bundela rulers.
Tungnath Tungnath, at 12,073 above mean sea level, is the highest Shiva temple in the world, discounting perhaps the Amarnath Cave shrine near Srinagar, Kashmir, which is situated at an altitude of 12,756 feet. Tungnath is second in importance among the five mountain shrines collectively known as the Panch Kedar and is situated in Uttarakhand’s Garhwal Himalaya.
Hampi, Karnataka Hampi, on the banks of the Tungabhadra River, was the ancient capital of the glorious Vijayanagar Empire. The ruins of the Achyuta Raya temple here look so serene and beautiful that one can only wonder how grand the temple must have looked 500 years ago.
Hoysala Temples Nearly everybody has visited the spectacular Hoysala temples of Belur, Halebeedu and Somnathpur. Off the tourist map lie several others. Many are located deep inside forests and coffee plantations.
Siem Reap, Cambodia Thought Angkor Wat was synonymous with Siem Reap? Think again. Once you are done with the sunrise and sunset and the tour of Angkor Wat, do not head back to the next destination in Cambodia. Buy yourself a three-day Angkor pass and visit other marvelous temples and you will find a slice of ancient civilization waiting for you.
Bali, Indonesia The Indonesian island of Bali is home to the majority of the country’s Hindus. Balinese Hinduism is characterized by the worship of the supreme god Acintya, along with the trinity in Brahma, Vishnu and Shiva. The art and ritual of the Balinese Hindus trace back to influences from the 4th century when Hinduism reached the island’s shores. Balinese temples are ornate, beautiful and situated in visually stunning locales.
Bishnupur Bishnupur, a small town in the Bankura district of West Bengal, is famous for its terracotta temples and rich artistic tradition.
The rock-cut cave temples of Badami in northern Karnataka date back to the days of the Chalukya dynasty, which ruled the region from the 6th to 8th centuries. The architecture is a blend of the north Indian Nagara style and the south Indian Dravidian style.


















