Wordpress

htaccess

What is the .htaccess File?


You may have been working on a website, or reading an article about web development, and heard about the .htaccess file, but wondered what it was, or what, if anything, you can do with it. This tutorial will tell you the basics about .htaccess, and show you a few ways you can use it on your website.

Before we go any farther, let’s explain what the .htaccess file is. htaccess is short for Hypertext Access, and is a configuration file used by Apache-based web servers that controls the directory that it “lives” in–as well as all the subdirectories underneath that directory.

Many times, if you have installed a Content Management System (CMS), such as Drupal, Joomla or WordPress, you likely encountered the .htaccess file. You may not have even had to edit it, but it was among the files that you uploaded to your web server. BTW, that’s its name, .htaccess–it begins with a period, and ends with “htaccess.” If you edit it, you need to make sure that it stays that way, and doesn’t end up with a .txt or .html extension.

Also note that some web hosts do not allow you to edit the .htaccess file–but even on most of those hosts, you can create your own .htaccess file and upload it to specific directories, and as discussed above, it will control those directories and subdirectories below it.

Some of the features of the .htaccess file include the ability to password protect folders, ban users or allow users using IP addresses, stop directory listings, redirect users to another page or directory automatically, create and use custom error pages, change the way files with certain extensions are utilized, or even use a different file as the index file by specifying the file extension or specific file.

Custom Error Pages for Better SEO

One use of the .htaccess file is to redirect users to a custom error page depending on the specific web server error they encounter. By using a custom error page, you can present them with a list of your site’s top articles, a sitemap with links to the various areas of your site, and it can include your site’s navigation system. It can also feature a FAQ, so folks who are looking for information on your site, but can’t find it, are able to narrow down the location of that information on your site without leaving, going back to the search engine, and more than likely not returning to your site.

It’s not difficult to use the .htaccess file to redirect users to a custom error page–but to do it you’ll need to know the proper error code. The most common ones you’ll use are:

  • 400 – Bad request
  • 401 – Authorization Required
  • 403 – Forbidden
  • 404 – File Not Found
  • 500 – Internal Server Error

To use .htaccess with these codes, first you’ll need to open up your favorite text editor, create a new document, and in that document, specify the error message that you’ll be redirecting like this:

ErrorDocument 404 /filenotfound.html

If you wanted to redirect users for another error, such as 500, Internal Server Error, you would do it like this (and so on):

ErrorDocument 500 /servererror.html

Then you’d just save the .htaccess file (remembering to check that it is saved just like that, without some additional extension), and upload it to your web host’s root directory (or whatever directory you are wanting to use it in).

Using a Different File as the Index File

By adding another “command” to the .htaccess file, you can use a different file as the main index file that folks see when they come to your site. In other words, when folks visit http://www.yoursite.com, usually they are presented with http://www.yoursite.com/index.html or http://www.yoursite.com/index.php–but often you have created a special page that you want to use as your site’s main page–and it isn’t any of the traditional pages. Or you may want to take advantage of the latest version of PHP…there are many reasons for needing to use a different file as the index file. Here’s how you would do it, with each type of file being next in line, if the others are not in the directory.

DirectoryIndex index.php3 index.php pictures.pl index.html default.htm

For instance, if there was no file named index.php3 in your directory, then the server would look for a file called index.php. If that file wasn’t present, it would look for one called pictures.pl, and so on.

Advertisements

Add an Admin User to the WordPress Database via MySQL


Step by step guide on how to create an admin user in WordPress Database via MySQL.

(Note: You should always make a backup of your database before performing any MySQL edits..)

First, you need to login to phpMyAdmin and locate your WordPress database. phpmyadmin

Once you are in, we will be making changes to the wp_users and wp_usermeta tables. Lets go ahead and click on wp_users table.

insert_user

e need to insert our new admin user’s information, so click on the Insert tab like it shows in the image above. In the insert form, add the following:

  • ID – pick a number.
  • user_login – insert the username you want to use to access the WordPress Dashboard.
  • user_pass – add a password for this username. Make sure to select MD5 in the functions menu (Refer to the screenshot below).
  • user_nicename – put a nickname or something else that you would like to refer yourself as.
  • user_email – add the email you want to associate with this account.
  • user_url – this would be the url to your website.
  • user_registered – select the date/time for when this user is registered.
  • user_status – set this to 0.
  • display_name – put the name you like to display for this user on the site (it can be your user_nicename value as well).
  • Click on the Go Button

Next we are going to have to add the values to wp_usermeta table. Click on the wp_usermeta table and then click on the Insert tab just like the previous step. Then add the following information to the insert form:

  • unmeta_id – leave this blank (it will be auto-generated)
  • user_id – this will be the id of the user you created in the previous step.
  • meta_key – this should be wp_capabilities
  • meta_value – insert this: a:1:{s:13:”administrator”;s:1:”1″;}

Insert another row with the following information:

  • unmeta_id – leave this blank (it will be auto-generated)
  • user_id – this will be the id of the user you created in the previous step.
  • meta_key – this should be wp_user_level
  • meta_value – 10

Then click on the Go button, and you have created yourself a new username. Now you should be able to login to your wp-admin with the username and password you specified for this user. Once logged in, click on Users and edit the username you just created. Go down and click on the Save button (you don’t have to change anything). This will allow WordPress to go through and add some more information and clean-up the user we just added.

db_security

Improve Database Security


You don’t have to go far to find out how important database security is. For instance, Target is still reeling from their systems being hacked, exposing the credit card information of many of their customers. It’s the kind of harm that requires a lot of time, money, and resources for damage control, as well as the aftermath of breaking the trust in the company and diverting resources toward making sure it doesn’t happen again.

Ensuring the security of your company’s information is important, and even some of the biggest businesses can expose themselves to hackers exploiting security flaws. The information in your company’s databases are important, so it stands to reason that database security is too.

Here are following things you can do to keep your company and customer information safe and secure.

1. Secure passwords.

The most sophisticated systems on Earth can’t protect against a bad password. There are the typical culprits — 12345, ABCDE etc — but hackers have increasingly sophisticated tools at their disposal that makes many other passwords increasingly vulnerable. Now, it’s not just making your password “password” that you have to worry about. It can be words in-and-of themselves. Programs exist that guess passwords that might be words in the dictionary or commonly used phrases, so those are out.

You can try to make a combination of letters, numbers and symbols to throw off would-be hackers.

One other suggestion is to set rules that make employees change passwords on a revolving basis. If a password isn’t changed after 90 days, lock out that account pending administrator approval to make sure that an old password isn’t a hacker’s way in.

2. Encrypt your database.

Just as important as the passwords is the encryption of your database. Encryption means converting your data to a format such that, were it to be intercepted, would seem like a string of letters and numbers with no tangible meaning. But to the database program, it all easily converts to the data you want. But it ties back into passwords. A Yahoo! hack in 2012 exposed more than 400,000 passwords in plain text to the web at large. This meant open access to emails and passwords, and the need for a whole lot of users who put their faith in Yahoo! to change their passwords. Here, too, you don’t want to be the company at the other end of that controversy. Make sure that your database is encrypted with up-to-date encryption software.

3. Don’t show people the backdoor.

A simple way to protect your database? Leave it out of sight. This means keeping it hidden from search engine results through the robots.txt file, and also not linking to it directly. While you want employees to have access to database information, you may not want to put the log-in directly on the site. If you have an online database, do yourself a favor and keep it on a need-to-know basis. After all, the first step toward hacking a database is finding it in the first place.

4. Segment your database.

A wide open database is a wide open vulnerability. You’ll want to segment your data to make sure that not just anyone sees everything. In many systems, various roles can be created within the database.

For instance, you might want to have users, super users, administrators, and super administrators. Users can access or input basic information, but not alter information beyond what they’ve put in, whereas a superuser has computer permissions that allow wider access to data without being able to change everything. An administrator can work above all of these users, altering the structure of the database or having access to more sensitive information, while a super administrator can run the whole operation. For the upper tiers, you’ll want to keep the number of people with those clearances low, such as managers or department heads. This ensure that, should a password be exposed on the site, it’s not devastating if it’s only someone with access to basic information on the site.

5. Monitor and audit your database.

One way to prevent database breaches is to keep an eye on the database itself. Monitoring access and behaviors of database users can help you ensure that no odd behaviors are exhibited that might imply a leak. Checking unfamiliar IP addresses can ensure that no one has an employee password who shouldn’t. Think of it like when you get a call from the bank asking you to confirm a transaction. Your address is in New York, but your card is being used in Calgary. It’s a red flag to bank security, and the same thing should be a red flag to your business.

In addition, regular audits of your database help find inactive accounts, helping eliminate problems that might arise with someone obtaining old employee information. Perform regular audits, and your company can tighten up security before problems arise.

6. Regularly Backup your Database

Your database contains all your important information if the database is erased or corrupted you lose everything.

Sometimes accident can happen when we least expert it. If you can have made a careless mistake and your database is gone how can you restore your data in your database?

So Backup your database regularly.

If you are use WordPress  so you can use backup plugins for take database backup.

wp-database-backup_download_buttonFree Download WP-Database-Backup :When plugin is installed and active. you can backup your blog database easily in single click.

Website indexed in Google

How to get Website indexed in Google?


From individuals to Start ups to big business organizations, everybody prefers websites as a medium to connect with their customers. But the question is do they reach to the right people? Many surveys believe that most of them may not be very successful in it. They create a website with good content and creative design; still, the website doesn’t get expected views. There are simple methods to overcome the scenario such as indexing your website in Google.

First of all, be ready with a complete website. Your website should not have broken links. Check the content of the website. Next step is the selection of keywords according to your content. It should be similar with name of the important content on the website. It will help your website to rank high on Google.Website indexed in Google

Create the site map of your website. It will be in .xml format. It will store all the URLs of your web pages. You can access the web pages on the site map online or offline by using various tools. Site map provides number of statistics. It helps you to understand how many times your website was searched on Google.

Next thing you must do while indexing your website to Google is using website root directory. Website root directory is a folder where you upload or save all website related files. Upload the site map in the web directory. It will be easy to search your content while looking for the site map.

It is important to add your website to Google Webster support, tools. You can do it by using regular Google accounts. Add your website to the Webster by providing your website’s URL. It is important to add site map to the Google Webster. Provide your site map’s URL on asked places. You should categorize your website map by selecting the options. Make sure that you have selected right options about your website map. Finally add your website’s sitemap to the Google Webster.

You will have to wait for few days for the response. Your website will get indexed by Google soon if you follow the above mentioned process. It will help you to increase the traffic of your website.

Create a Responsive Web Design


Responsive Web Design is a best way to optimize website viewing in different kind of devices such as desktop, tablet, mobile etc. This kind of website get more traffic compare to other websites. Responsive website dynamically reduce website size and increase website loading speed for various devices.

responsive_degin_by_prashant_Walke.jpgSome responsive frameworks give ability to design responsive websites. If you design new responsive theme or change your website theme as responsive, that will definitely increase your website quality and users. Google officially recommended Responsive web design. This tutorial suitable for beginners, intermediate users, professionals in web design.

Difference between ordinary CSS Style sheet and Responsive CSS Style sheet.

In Responsive webdesign, some CSS style sheet element defined in %.

img {

max-width : 100%;

}

In Responsive webdesign, CSS Style sheet contain @media query to change rules and sizes based on various devices.

Example: @media only screen and (max-width: 600px) { .. } [for smart phones]
@media only screen and (min-width: 992px) {..} [for desktops]

 How to Create Responsive Web Design Based Website?

Step 1: First create HTML file with CSS Id and Class for your theme.

<html>
<head>
<title> Demo about Responsive Webdesign </title>
</head>
<body>
<header>
<h1>responsive Web Design tutorial</h1>
</header>
<article id="one">
<h2>Responsive Web Design</h2>
<section class="one">
<p>Some Demo Content here...</p>
</section>
</article>
<aside>
<h2>sidebar</h2>
<p>Some Demo Content here...</p>
<p>Some Demo Content here...</P>
</aside>
<footer>
<p>Copy Right information</p>
</footer>
</body>
</html>

Step 2:Add View port Meta tag

First of all you need to trigger browser to render your website page more readable scale. So add following meta viewport tag before </head>. It will say that your website page is properly scaled inside any screen size such as mobile screen.

<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>

Step 3:Next you need to add style sheet.

you can two ways to add style sheet.

first way : use<style> </style> tag inside </head> tag in your html file.

Add CSS rules inside this <style> </style> tag.

Next way: Create separate style sheet and link this style sheet inside </head> tag in your html file.

Example : <link rel=”stylesheet” type=”text/css” href=”style.css”>

Here change style.css name instead of your css file name.

aside, article, section, header, footer, nav {
display: block;
}
aside, article, section, header, footer, nav, html, body, p, h1, h2, h3, div {
margin: 0;
padding: 0;
}
Add Some background for your theme
html {
background: #EDEDED;
}
body {
margin: 0 auto;
background: #fff;
font: 90%/1.6 georgia,serif;
}
Give some content styles
/*content styling*/
header {
background: #F7A42F;
padding: 50px 25px 10px 0;
color: #fff;
margin-bottom: 2em;
}
h1 {
text-align: right;
font-size: 3em;
font-weight: normal;
font-variant: small-caps;
letter-spacing: .1em;
}
p {
margin-bottom: 1em;
}
article {
text-align: justify;
}
article h2 {
font-size: 2em;
font-weight: normal;
margin-bottom: .2em;
}
article p {
font-size: 1.2em;
margin-bottom: 1em;
}
aside {
font: .9em sans-serif;
}
aside h2 {
font-size: 1.2em;
margin-bottom: 1em;
}
footer {
background: #E08B14;
font: 1.2em sans-serif;
text-transform: uppercase;
letter-spacing: .2em;
text-align: center;
color: #fff;
}

Step 4:open your .css file and add CSS rules

First clear spaces and margin from all elements such as article,header etc.

aside, article, section, header, footer, nav {
display: block;
}
aside, article, section, header, footer, nav, html, body, p, h1, h2, h3, div {
margin: 0;
padding: 0;
}
Add Some background for your theme
html {
background: #EDEDED;
}
body {
margin: 0 auto;
background: #fff;
font: 90%/1.6 georgia,serif;
}
Give some content styles
/*content styling*/
header {
background: #F7A42F;
padding: 50px 25px 10px 0;
color: #fff;
margin-bottom: 2em;
}
h1 {
text-align: right;
font-size: 3em;
font-weight: normal;
font-variant: small-caps;
letter-spacing: .1em;
}
p {
margin-bottom: 1em;
}
article {
text-align: justify;
}
article h2 {
font-size: 2em;
font-weight: normal;
margin-bottom: .2em;
}
article p {
font-size: 1.2em;
margin-bottom: 1em;
}
aside {
font: .9em sans-serif;
}
aside h2 {
font-size: 1.2em;
margin-bottom: 1em;
}
footer {
background: #E08B14;
font: 1.2em sans-serif;
text-transform: uppercase;
letter-spacing: .2em;
text-align: center;
color: #fff;
}

Step 5: Next add some media query inside your CSS
If you want to create responsive design, first you need to assign or edit some media query inside your .CSS style sheet file.

Media queries are used to skip or change CSS rules in minimum or maximum width of devices.

If you want to know various devices displayed pixel density use Wikipedia list.

 

/*layout styles*/
@media all and (min-width: 780px) {
/*layout*/
body {
width: 85%;
max-width: 1280px;
min-width: 960px;
}
article {
float: left;
width: 64%;
padding-left: 2.5%;
}
aside {
float: right;
width: 26%;
padding: 0 2.5%;
border-left: 1px solid #aaa;
}
section {
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
-webkit-column-gap: 1em;
-moz-column-gap: 1em;
column-gap: 1em;
padding-bottom: 1em;
margin-bottom: 1em;
border-bottom: 1px solid black;
}
section:last-of-type {
border-bottom: none;
}
footer {
clear: both;
padding: 25px 0 15px;
}
}
@media all and (min-width: 481px) and (max-width: 780px) {
/*layout*/
body {
width: 90%;
max-width: 780px;
min-width: 485px;
font-size: 80%;
}
article {
float: left;
width: 56%;
padding-left: 2.5%;
}
aside {
float: right;
width: 34%;
padding: 0 2.5%;
border-left: 1px solid #aaa;
}
footer {
clear: both;
padding: 25px 0 15px;
}
 
/*content styles*/
h1 {
font-size: 2.4em;
}
footer {
font-size: 1em;
}
}
@media all and (max-width: 480px) {
/*layout*/
body {
width: 90%;
max-width: 480px;
}
article {
padding: 0 5%;
}
footer {
padding: 25px 0 15px;
}
/*content styles*/
header {
padding: 25px 15px 5px 0;
}
h1 {
text-align: right;
font-size: 2em;
}
article {
text-align: left;
margin-bottom: 1em;
}
aside {
border-top: 1px solid black;
padding: 1em 5% 0;
line-height: 2;
}
footer {
font-size: .7em;
}
}

Now save your file and open this file in your browser. Scale your browser to check its responsive.

Google officially recommended CSS media query for smartphones is:

@media only screen and (max-width: 640px) { … }

Targeted media queries for smartphones (landscape), tablets (portrait), desktops (narrow) is:

@media screen and (min-width: 480px) and (max-width: 800px) {..}

Targeted media queries for smartphones (portrait) is :

@media screen and max-width: 479px){..}

Targeted media queries to adjust flows and looks on various devices is :

Landscape Mode :

@media all and (orientation: landscape) {…}

portrait Mode :

@media all and (orientation: portrait) {..}

How can you test if your site is responsive?

Here you have options to test your site or theme over various resolutions:

http://www.tablet-emulator.org/

http://mattkersley.com/responsive/

Increase Database security in WordPress


1.REGULARLY  BACKUP WORDPRESS DATABASE

wp-database-backup

Sometimes accident can happen when we least expert it. If you can have made a careless mistake and your post is gone how can you restore your data in your database? Your database contains all your post,comments and link that you have on your blog so if the database is erased or corrupted you lose everything. Even long before WordPress was born it is always a wise move to have back up files.
Blogging is a big business and it if you have invested thousands or hours writing these blog post then you need the proper system to ensure that your hard work will not be lost.

wp-database-backup_download_buttonWP-Database-Backup : When plugin is installed and active. you can backup your blog database easily in single click.

2.CHANGE THE DATABASE TABLES PREFIX

As the world most popular blogging software WordPress is the huge target of malicious scripts, hacks and spams and one of the best way to secure your WordPress database is to change the Default Table Prefix and in this tutorial you will learn how to do this quickly and easily during the WordPress installation Process.

Lookout the Default Database Prefix

Go to your online web host and there you search phpMyAdmin

Here you will see WordPress table prefixes with wp_ . The WordPress table used as default values are heavily targeted by bad bots and malicious scripts. So by changes the default prefixes and set as unique can effectively immunize your Database with such automated attacks and bad boys.

Increase Database security in WordPress

How to Change default Database Prefix in WordPress

The easiest and recommended method to change the default prefix happens is before the installation process. Before submitting the setup page go to your online web host Cpanel and then WordPress site directory and open wp-config.php and scroll down where it say ‘ WordPress Database Table Prefix ‘ . Here you see the default prefix wp_ .
Increase Database security in WordPress
Changing this prefix to anything different is going to work just fine and perfectly save to include wp_ is not as long the entire prefix but even so there are three helpful tips for customizing your own database prefix
  1. Begin the prefix with wp_ so the table appears in order among other tables that are edit by plugins and themes.
  2. In the middle pick any sequence of random alphanumeric characters.
  3. At the end of prefix with an underscore _ so that the actual table names for example host, users, metadata and so forth stand out under easily recognized.
Return to your Web host Cpanel and Go to WordPress site directory and open wp-config.php and in ‘ WordPress Database Table Prefix ‘ search $table_prefix = ‘wp_’ ; and edit this as
$table_prefix = ‘wp_write random Alpha numeric characters_’ ;
Example : $table_prefix = ‘wp_s3CUr3_’ ;
wpnew db prefix
as the new prefix and save the file and after this point install WordPress in your site and complete the installation. Now again go to phpMyAdmin and you will see default DB prefix changed into new random prefixes.
Now everything looks great and all of your tables and Prefix are more secure. Note that if you already setup a WordPress and want to change prefix its still possible and you will learn in our coming tutorials. Changes the DB prefix during the WordPress installation process is much easier. The point is that by using the using the things other than default prefix can protect your database from majority of automated attacks.

3.SMARTLY PROTECT WP-CONFIG.PHP

Wp-config.php is one of the most important files in your WordPress installation. This file contains some of the very important administrator credentials that can help a hacker gain access to your WordPress database. Therefore, it is suggested that you add the piece of code below into your .htaccess file:

1
2
3
4
5
# protect wp-config.php
<files wp-config.php>
order allow,deny
deny from all
</files>

The .htaccess file will be available in your www root directory. If it is not there, then you can create the file and add the above code to it.

HOW TO PROMOTE YOUR WEBSITE USING SEO

How To Promote Your Website Using SEO?


An important part of promoting your website online is tohave it listed by search engines in their search results. The higher positionsin the search engine results you get, the more clicks and traffic you will have for FREE!

The key to having good rankings in free searches is the so-called “search engine optimization” (SEO) which starts by having your site indexed by search engines, goes through optimizing your content for search engines and then building valuable links to it. Google has the most dynamically changing algorithm to consider for search engine optimization so often when we talk about SEO factors, we mean factors that will affect most of all your Google rankings.

Articles

1.Search Engine Submission

Practically everyone who has access to Internet uses Google, Yahoo, or another popular search engine to browse the net and find extensive information in a matter of seconds. For every search, the search engines return relevant results in two categories: free and sponsored links. The big fight is to have a good ranking on the free search as it gives great exposure and is free!

The search engines have a way to find new websites, however, them finding your newly created site might take a while. To get listed on free search results faster, you may submit your site to the most popular search engines and thus invite them to index your site in their results.

It is free and very easy to submit your website to search engines! You better do that submission manually as the search engines ask for verification when submitting the site. Here are the most popular search engines and the pages where you can add your URL:

How to submit a website to search engines?

2.Select Keywords

The first step to the search engine optimizationis to choose the keywords you wish to target with your website. Your task is todetermine on which search phrases, you wish to have your site listed in theSearch engine results page. Once you determine a set of such phrases, youshould include them in the content and the meta tags of your web page(s) tohave a successful SEO process.

What are keywords?

The keywords are important words that your visitors use tofind your site. The prospect visitor will type a keyword (or a combination ofwords) in the search engine and will get a list of results. In order to have yourwebsite displayed by the search engines on a specific search phrase, the searchengines should “believe” that your website is relevant for thissearch phrase. To make your website relevant for a certain keyword you need tochoose them carefully and to use them wisely in your website content and metatags.

How to choose successful keywords?

Although this is the most essential question, it is actually simple and very logical. The keywords are words that describe the topic(s) included and discussed on your website. For example, if your website features the surfing lessons that you give, you may use the following keywords and phrases:

surf lessons, surf instructor, surf, surfing, learn surfing, learn to surf, etc.

One thing you should remember, when choosing successful keywords, is that the best keywords are the ones that people will use in their day to day language in describing your service, product or website topic. We recommend that you choose some less general keywords in order to achieve better results. For example in the case of the surfing website, the word “sport” is far too general. If you choose it you will be competing with far too many websites on that word and many of the people who use this word as a search phrase will not be looking for surfing lessons but a totally different sport.

Also, if you are a newbie, the keyword “surf lessons” might be too competitive for you and your not yet authoritative website might not show on first page search results for that word. That is why initially, you may want to focus on smaller in search volume keywords or combination of such where you could more easily pop up on first page and even first spot. If “surf lessons” is too general, you may try “surf lessons Miami beach” for example – adding your geographical location will narrow the search volume but might be easier to fight for high positions.

Get Help from Google Webmaster Tools

When selecting your keywords you may want to check Google Webmaster Tools -> Keyword Tool. When you a type a targeted keyword in that tool, it will display the volume search within a selected region and/or industry, depending on your filters. This will help you compare the reach potential of various targeted keywords. It will also suggest related keywords for your convenience.

3.Metatag Optimization

The meta tags are a very important part of the HTML code of your web page. They are read by the search engines but are not displayed as a part of your web page content. Usually they include a concise summary of the web page content and you should include your relevant keywords in them. Most meta tags are included within the ‘header’ html code of a website. They are title, description, keywords and robot tags, but currently the most important two are title and description. These two are displayed by search engines when listing your website in search results.

How to optimize meta tags?

The title tag and the meta description should include keywords relevant to the content of the web page they describe. You should consider the length and the order of the characters/words included in each of the meta tags. Note that the search engine robots read from left to right and those words that come first are more important than those that come towards the end of the page.

Title Tag

It could be said that the title is one of the most important factors for a successful search engine optimization of your website. Located within the <head> section, right above the Description and Keywords tag, it provides summarized information about your website. Besides that, the title is what appears on search engines result page (SERP). The title tags should be between 10-60 characters. This is not a law, but a relative guideline – a few more symbols is not a problem, you won’t get penalized for having longer title tags, but the search engine will simply ignore the longer part. Make sure the most important keyword you have decided to fight for is used in your title tag and as early in the phrase as possible.

Meta Description Tag

The description tag should be written in such way that it will show what information your website contains or what your website is about. Write short and clear sentences that will not confuse your visitors. The description tag should be less than 200 characters. The meta description tag also has a great importance for the SEO optimization of your page. It is most important for the prospect visitor when looking at the search engine result page – this tag is often displayed there and helps you to distinguish your site from the others in the list. Again, use one or more of your most important keywords in that tag.

Meta Keywords Tag

Lately, the meta keyword tag has become the least important tag for the search engines and especially Google. Many websites have stopped adding keywords meta tags.

Meta Robots Tag

This tag helps you to specify the way your website will be crawled by the search engine. There are 4 types of Meta Robots Tag:

Index, Follow – The search engine robots will start crawling your website from the main/index page and then will continue to the rest of the pages.

Index, NoFollow – The search engine robots will start crawling your website from the main/index page and then will NOT continue to the rest of the pages.

NoIndex, Follow – The search engine robots will skip the main/index page, but will crawl the rest of the pages.

NoIndex, NoFollow – None of your pages will be crawled by the robot and your website will not be indexes by the search engines.

If you want to be sure that all robots will crawl your website we advise you to add a “Index, follow” meta robot tag. Please note that most of the search engine crawlers will index your page staring from the index page, continuing to the rest of the pages, even if you do not have a robot tag. So if you wish your page not to be crawled or to be crawled differently use the appropriate robot tag.

How to edit meta tags?

You can edit your meta tags through the File Manager in the cPanel of your hosting account. You need to edit the file of each web page. The file contains the HTML code of the page.

4.Content Optimization

The content of your website is important for the search engines as they consider your website’s relevancy and importance based on both meta tags and content in relation to the important keywords you fight for. There are several guidelines you should follow:

Include keywords in text

You should make sure that all those keywords you have included in your meta tags and on which searches you wish to come up are included in the text of your site.

Consider 5-20% density of the keywords in text

You should make sure that about 5% to no more than 20% of your text is keywords. Be careful not to overcrowd your text with keywords cause you might get penalized. Note that you should have the most important keyword(s) in the beginning of the page as thus they are given more weight.

Mind the formatting of the text

Formatting (bolding, H1 titles, etc.) is also important to show the search engines that certain words are more important than others. Thus, if you bold your keywords in your text, they are perceived as more important than other words and thus your text becomes more relevant to these keywords.You should be especially aware of the H1 and subsequent title tags. The H1 is html abbreviation of the most important title on the web page. Make sure you use your most important keyword in that title.

Add regularly relevant content to site

You should make sure that you add relevant content to your website. This content addition invites Google to visit your site more often and increase its relevance and importance. An easy way to refresh content is adding a news or tweet module to display most recent feeds.

5.Link Building

Link building is currently the factor with highest importance for getting good rankings. The more links you have to your website from other authoritative sites, the more important becomes your website according to search engines.

The quality links are the ultimate criterion for the quality of your own website. exchange is the most successful way for increasing your visitor traffic without paying any money for advertising. Link exchange is also considered essential for the searchability of your website – search engines like sites with a great number of incoming links as these sites are perceived as more important than poorly linked sites.In the ideal world, it would be great if you could only have incoming links to your site and no outgoing, however, in reality you can rarely have your link listed on a relevant site unless you link in return. That is why link exchange is so important. There are a few guidelines you should consider when swapping links.

Get as many incoming links as possible

The greater the number of incoming links to your site, the more popular it becomes for search engines. When in an early stage of growing your website, any link is a good link EXCEPT for the paid links. There are many sites that will offer to buy certain number of links for you, most often using paid directories submission. These links are a loss of money – Google does not like them and might even penalize you for them. Paying for text and banner ads is a totally different thing and is not considered a problem.

Get links with pages with higher Google rank

The higher the Google rank of the pages linking to yours, the bigger the boost to your site rankings is. The more relevant the content ofthe partner sites to your own, the higher your URL shows in search results andthe more people visit your page.

Interlink site’s pages

A specific page’s importance is also measured by the importance and depth of the other pages on the site that refer to the page in question. Itis a good practice to interlink your web pages by making text references or having the most important pages linked in your site footer.

Link exchange

You should be careful with link exchange because it presumes you have to give in order to get. It is not a problem to give exposure to another websiute from your own, just make sure you don’t crowd your own pageswith external links as you will be losing link juice. Also, make sure you don’tlink exchange with direct competitors as you might end up losing sales.

6.Avoid the most common SEO mistakes

There are a few SEO mistakes that you should avoid. These simple-to-follow guidelines are essential for the way your pages rank in search results.

Targeting the wrong keywords

You should carefully choose the keywords, which you want to compete for. For example, if you are making a website for your local American football team where you only feature the players and their results, you should not aim for a keyword like “soccer” as you don’t really care where you rank on the word “soccer,” even if you mention it anywhere on site.

Duplicate Meta tags

This is a common mistake among web designers. Meta tags should be unique and meaningful for each separate page. If they are the same, search engines consider them as duplicate content and rank you lower in their search result pages. Or, if you target the same set of keywords with two different pages, your pages will be fighting between each other for a position in results on the same keyword thus devaluating each other’s worth.

Website is entirely created with Flash without an HTML alternative

Although websites created with Flash can be very pretty and attractive, search engines cannot crawl them. Since they cannot index your content, you will not rank for the keywords you would like to. Therefore, you should create an HTML alternative of your Flash website and provide your visitors with the option to choose one of them. By doing this you will increase the usability of your website and improve the way search engines index it.

Missing “alt” tags in the code for your images

Unfortunately, search engines cannot scan what is shown on an image. They cannot distinguish a photo of a flower from a photo of a truck. The only way they receive information about an image is through its file name, its title and “alt” tag. Make sure you enter relevant title and alt tags for each one of the images on your website. You should give them meaningful names; avoid using image1.jpg, image2.jpg, etc. By doing this, search engines will receive the information they need for your images. In addition, they will be included in the search results when someone searches for a photo in Google for example.

Failing to create a content hierarchy

Many web designers underestimate the power of a well-structured website. Search engines rank higher websites with well-organized content. You should use heading tags (h1, h2, h3) to organize your text. This will improve the readability of your content and the way search engines index it.

These are only a few of the many methods for improving your search engine ranking. If you want to learn more, we recommend the following resources:

Top SEO Plugins for WordPress:

Common Causes of the 404 error

Common Causes of the 404 error


The 404 error is very commonly confused with the server not found error. The difference between the two is that the former occurs when a server fails to locate a resource that a client has requested while the latter happens when the destination server cannot be connected. If the 404 error message shows up for a page it may mean that the requested content is not available at the moment, but could possibly be available later. This error indicates thetemporary unavailability of a web page.Common Causes of the 404 error

410 is another very similar error. If an error message for a request shows up as “Gone 404″, it means that the requested page/content has been intentionally removed permanently. Presently Google treats  the 404 error and the 410 (Gone) error alike.

A 404 error shows up when a requested page is moved or deleted. In case you are moving a page to a new location, you can make use of the 301 redirect. If you wish to remove a page completely, you can make use of the 410 message. However you need to acquire special server configuration to make such messages available to the users.

“404 Not Found.” These three little words can make any Internet explorer an unhappy camper. After all, who hopes to click on a broken link or stumble upon a moved or deleted page while cruising around the web?

Luckily, some web designers have chosen to end the misery of encountering a 404 error page. Instead of letting their site readers bump heads with a nasty dead-end error message, they’ve managed to squeeze a little entertainment out of it.

Common Causes of the 404 error –

Moving a page

Websites often reorganize their pages or introduce new URL structures. In booth cases it is very essential to bring this change to the search engine’s notice. It is important to ensure that each such change in the URL must be accompanied with a 301 redirect to the current and functional web page. Links to these pages may have already been established on various sites as part of the off-page optimization activities. This makes the redirecting even more crucial.

Renaming a page

Renaming a web page must also be immediately followed with a 301 redirect.

Mistyping

A user may try to type in your URL. The type-in traffic is always likely to make spelling mistakes. You can try to acquire URLs which are very close to yours and if any potential type-in traffic is likely to confuse your URL with it.

Typographical errors are one of the greatest causes of the 404 errors.

Misspelling

Misspellings too result in the 404 errors.

Case Sensitivity

Case sensitivity is never a problem when you are using only the top level domain. However if your URL contains the name of a particular directory or file, the case of the letters matter. Linux/Unix Operating Systems acknowledge the case while Windows does not differentiate between the lower and upper case. Case sensitivity also depends upon the web server setup. In case a webmaster decides to migrate from the current operating system, several technicalities need to be sorted first.

Favicons

Many browsers expect favicons in a website. Whenever a browser tries to locate the favicons file for a web page and is unable to locate it, a 404 error is returned. To avoid a 404 error due to favicons, you must include a favicon.ico file in each directory.

Robots.txt

There may be certain pages on your websites that you may not want the crawlers to visit. You have a provision for this in the robots.txt file. This file helps the search crawlers in identifying the URLs of the pages that you would like to exclude form the crawling process. If the search bots try to visit these pages, 404 errors occur.

WordPress Security


As much as hacking is over-estimated, it is also under-estimated. No, the tone is not philosophical here. As website designers and owners, you have been searching for hacking only in huge evidences – a strange thing like a violent video clip being posted out of nowhere on your website. But have you considered the comment box you left open contains many hazardous things from abusive words to malware. There are many minute factors we choose to ignore that contribute to WordPress security.

wordpress-security-by-prashant_walke

Pop-ups shouldn’t annoy you so much

The pop-ups on your dashboard that irritate you are actually your saviors. Updating your website for the latest WordPress version is the best possible and simplest precaution. The update reaches you on your dashboard and keeps you ahead of any previous flaws. The theme you chose for the website and thought was only a matter of taste, also serves as a gateway for hackers. Updating themes keeps your hacker guessing. The updating section cannot be completed without plug-ins. Right from securing database to ensuring better login processes, updating plug-ins takes care of details that you miss but hackers don’t. WordPress security is enhanced by updating regularly.

How guessable is your password?

The log-in processes can also be taken care manually. Constructing better and safer passwords also ensures safety. You might be tempted to keep it as your spouse’s name, but don’t forget your social media accounts have all your information. ‘123…’ or ‘password’ is anyone’s guess. Be sure that you have alphabet letters, numbers and special characters – all in one password. Your user name also affects the safety of your website. Choose your user name carefully. Common names like ‘admin’ or your ‘name_surname’ is not the ideal way. Also, with the help of plug-ins, keep the number of login attempts before your account gets locked less. The hacker’s job becomes tougher because of this. You can challenge your own WordPress Security by  choosing lame passwords and allowing a great number of unsuccessful login attempts.

Do you backup regularly?

Lastly, disaster management is any business’ essential. Taking a backup is especially required when you migrate from one theme to another or from one update to other, but a back-up should always be there. There is a risk of getting hacked every day. We know that sounds scary, but precautions are the best cure. You have a list already! WordPress security exercises include taking backups.

These Plugins which will Keep Websites and Blogs Highly Secured:

1 .Restricted Site Access
2. LockDown WP Admin
3. BulletProof Security
4. Secure WordPress
5. Ultimate Security Checker
6. WP Security Scan
7. My WordPress Secure

Speeding Up Your Web Site


Speeding Up Your Web Site:

Speed-up-your-website_by_prashant_walkeWebsite speed is really crucial and thus a faster loading site means better user experience. Indeed, there is no point making an impressive site if it takes much time to load. You may be thinking of why you should give consideration to the website speed. Well, there are a number of facts and reasons behind this, but the most important of them are revenue and search engine rankings.

When you run a business online, your site is the most crucial marketing tool. Thus it makes proper sense to make sure that the site is created to high standards. In fact, there are many things that you need to keep in mind when making a site. The most important of then all is the website speed. Most people do not give this point any consideration and regret later.

Why Should You Speed Up Your WordPress Site?

Much Better Rankings

Matt Cut’s have officially stated that they count page speed as a metric to rank websites. Search engines don’t like slow webpages. They will never want a slow site to be ranked higher up in the SERPs, as it deteriorates their users experience.

Higher Conversion Rate

Increased Traffic

Better User-Experience

This is indeed a very important matter to consider. User experience should be of significant importance to any blogger. A simple way to enhance user experience is to speed up your site. Faster your website loads, better is the user experience. Users are more likely to stay longer on a fast loading website than on a slower one. Thus a simple technique of speeding up your site can drastically increase the on-page time of your visitor’s on your blog.

How To Check Website Speed?speed-up-wordpress-site_by_prashant_walke

There are few online sites who provides your site speed score.

1) :- Google Page Speed Tool :- Visit Site

2) :- gtmetrix.com :- Visit Site

3) :- Pingdom Page Speed Checking tool :- Visit Site

These Tools are very simple to use, Just open any URL and paste your website URL there and Hit Go Button, it will load your website speed overall out of 100.

 

The Optimization Techniques

  • Minify JavaScript and CSS.

JS Compressor

There are a number of online tools available for minimising your javascript. The following tools all require a download and to be run on your machine:

  1. YUI Compressor
  2. JSMin
  3. ShrinkSafe

These tools allow you to paste in/submit your javascript online and get a minimised version back without having to run any programs on your machine:

  1. Packer
  2. JS Minifier

One potential issue with minimising your javascript is the need to keep a minimised version in your codebase for deployment, and an expanded version for development/maintenance. One way around this is to have your webserver look after compression and minimisation of the files in question. This may lead to some additional overhead on your webserver, but you can address this via cache lifetimes etc.

CSS Compressor

Use this Cascading Style Sheets, CSS Compressor to compress CSS to reduce CSS code size and make your web pages load faster.

Checkout this too for CSS: http://www.csscompressor.com/

  • Minimize number of HTTP Requests by combining several files (css, js) into one.

  • Make JavaScript and CSS External

  • Remove Duplicate Scripts

  • No 404s

    HTTP requests are expensive so making an HTTP request and getting a useless response (i.e. 404 Not Found) is totally unnecessary and will slow down the user experience without any benefit.

    Some sites have helpful 404s “Did you mean X?”, which is great for the user experience but also wastes server resources (like database, etc). Particularly bad is when the link to an external JavaScript is wrong and the result is a 404. First, this download will block parallel downloads. Next the browser may try to parse the 404 response body as if it were JavaScript code, trying to find something usable in it.

  • Minimize the Number of iframes

  • Reduce Cookie Size

HTTP cookies are used for a variety of reasons such as authentication and personalization. Information about cookies is exchanged in the HTTP headers between web servers and browsers. It’s important to keep the size of cookies as low as possible to minimize the impact on the user’s response time.

  • Optimize Images

  • Make favicon.ico Small and Cacheable