How To Fix The WordPress Internal Server Error

How To Fix The WordPress Internal Server Error

Well, when my site was hacked and then some how I restored it but I got the “Internal server Error” when I clicked on any link. Here I found the solution of it.

This is the kind of message you will see if you have an Internal Server Error :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@yoursite.com.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an Error Document to handle the request

9 times out of 10, this is a simple htaccess problem and is easily resolved. For whatever reason, the .htaccess file can become corrupt (perhaps due to a plugin however many things could cause it). So all you have to do is correct your .htaccess file and you should be able to see your site again.

How To Fix The WordPress Internal Server Error

Here is what you need to do :

Back up your current .htaccess file.

Delete all of the information from your .htaccess file and save it i.e. upload a blank .htaccess file.

Your blog should now be usable again so go into the admin area and set your permalink structure again.

Open your new working .htaccess file in an editor. Now copy over all the non WordPress .htaccecss information from your old backed up .htaccess file eg. any search engine htaccess information, ip blocks etc basically everything Non-WordPress that you added before.

If you find that adding all the code from the previous .htaccess file is causing an Internal Server Error again then remove it all and enter the information back to the working .htaccess file line by line to see what is causing the problem.

Bear in mind, this might not resolve every Internal Server Error you get though if you suddenly get this error on your WordPress blog, this is the first thing I recommend doing before contacting your host or looking for an alternative solution.

Taken from (http://www.bloggingtips.com/2009/07/05/fix-wordpress-internal-server-error/)

Sms Gateway Integration In Codeigniter

Sms Gateway Integration In Codeigniter

In  CodeIgniter  It is very easy to integrate SMS facility to your application. Since SMS gateway follows different methods, here are some steps to get an idea that how you can do it.

Controller:

1.     Create Controller

2.     Now you can create a function let’s say sendSms() . In that function you can apply the following code.  Here to test you can sent the static values to check whether functions are working or not.  The commented part is the dynamic values.

3.     Write the below code to send message.

$this->load->model (‘modelname’, “sms”);

$message=’ I am xyz’;

$mobile=9999999999;

// If Mobile No and Message are  Dynamic  so write   below the line.

//$message=$this->input->post(‘Message’);

// $mobile = $this->input->post(‘mobileno’);

$this->sms->smssend($mobile,$message);

Model:

1.     Create Model.

<?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);

class modelname extends CI_Model {

public function smssend($mobile,$message)

{

$request=’username=username &pass=123456&senderid=Usersenderid              &dest_mobileno=’.$mobile.’&message=’.$message.’&response=Y’;

$ch = curl_init(‘www.smsjust.com/blank/sms/user/urlsms.php’);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, $request);

$resuponce=curl_exec($ch);

curl_close($ch);

return $resuponce;

}

}

How To Make Diamond Shape Image With Css?

How To Make Diamond Shape Image With Css?

Some times as a web designer it is very important to display our images uniquely.

Now let’s see how to display image in diamond shape? And this is the solution.

This is the code below

<div class=”square”>

<div class=”pic”>

<img src=”diamond.jpg”>

</div>

</div>

First set the image with 2 classes “square” AND “pic”

Next step is rotate the square class with -45 degree like this

.square{

transform: rotate(-45deg);

width: 105px;

height: 105px;

margin: 24px;

border: 2px solid red;

overflow: hidden;

}

Then rotate the pic class with 45 degree and all we set like this

.pic{

transform: rotate(45deg);

overflow: hidden;

width: 140px;

height: 140px;

margin: -18px;

}

What Is Search Engine Optimization (SEO)?

What Is Search Engine Optimization (SEO)?

Definition

 Search engine optimization (SEO) is the process of affecting the visibility of a website or a web page in a web search engine‘s unpaid results — often referred to as “natural,” “organic,” or “earned” results

Methods

Getting indexed

The leading search engines, such as GoogleBing and Yahoo!, use crawlers to find pages for their algorithmic search results. Pages that are linked from other search engine indexed pages do not need to be submitted because they are found automatically. Two major directories, the Yahoo Directory and DMOZ, both require manual submission and human editorial review. Search engine crawlers may look at a number of different factors when crawling a site. Not every page is indexed by the search engines.

Preventing Crawling

 To avoid undesirable content in the search indexes, webmasters can instruct spiders not to crawl certain files or directories through the standard robots.txt file in the root directory of the domain. Additionally, a page can be explicitly excluded from a search engine’s database by using Meta tag specific to robots. When a search engine visits a site, the robots.txt located in the root directory is the first file crawled. Google warned webmasters that they should prevent indexing of internal search results because those pages are considered search spam.

Increasing Prominences

A variety of methods can increase the prominence of a webpage within the search results. Cross linking between pages of the same website to provide more links to important pages may improve its visibility.

Adding relevant keywords to a web page’s Meta data, including the title tag and Meta description, will tend to improve the relevancy of a site’s search listings, thus increasing traffic. URL normalization of web pages accessible via multiple URL’s, using the canonical link element or via 301 redirects can help make sure links to different versions of the URL all count towards the page’s link popularity score.

Types of SEO

There are mainly two types of SEO:

  • White Hat SEO: White hat SEO utilizes techniques and methods to improve the search engine rankings of a website which don’t run afoul of search engine (mainly Google) guidelines.
  •  Black Hat SEO: Black Hat SEO exploits weaknesses in the search engine algorithms to obtain high rankings for a website. Such techniques and methods are in direct conflict with search engine guidelines.
Remove WordPress Logo From Admin Bar And Pages

Remove WordPress Logo From Admin Bar And Pages

As a part of branding process, as a developer, I was searching that how I can remove the wordpress logo situated in top left corner in admin bar and page bar. If you can still not find please see the bellow image.

So as you can see, we are going to remove that logo from this admin bar. For that you have to right a little function in “functions.php” resides in your theme folder. Here is the code:

function annointed_admin_bar_remove() {
global $wp_admin_bar;

/* Remove their stuff */
$wp_admin_bar->remove_menu(‘wp-logo’);
}

Above code can be written in the end of the “functions.php” page and Ta..Da.. the wordpress logo from the admin bar as well as from pages bar is removed.

Put Your Own Logo On WordPress Admin Page

Put Your Own Logo On WordPress Admin Page

If you want to keep your own logo on wordpress admin page, it is quite simple. It is very good for branding and total uniformity, if you are providing any solution to your clients!!. To change the wordpress logo on admin page here are the steps:

Open the folder “wp-admin”
Inside that, open the folder “images”
Find a file named “logo-login.png”. The size of the image is W:274 x H:63
Now, either you can open it in the photoshop and change it or you can re-size your image and give your image name “logo-login” and save in PNG format.
Upload on your server and you are good to go!!
Its easy. Isn’t it.