How to Use 404-Error-pages and Still Help The User
Did you forget to renew an old url with a “redirect 301″, or did the user of one or another reason visit your blog and didn’t got the result they wanted, then it’s awesome that your system is set up to present 404 pages.
404-pages is a special error page where you can tell the user that he or she is unfortunately landed on a page that “does not exist.”
How to Set The Error Page in The Server’s .htaccess File
ErrorDocument 404 http://yourdomain.com/404.php
Can Your Web Hosting Configure 404-pages
On many web hosting services, you can via a corresponding control panel set up 404-error pages. If your webhost does not support this you can using “mod_rewrite” make a setup to take account of queries on files and directories:
# Request is not a file
RewriteCond %{REQUEST_FILENAME} !-f
# Request is not a directory
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule -? /404.php [L]
I’m not going to explain any further, because I think most of you is having a WordPress blog/Blogger blog which makes it so easy to manage 404 pages. However you can edit it by going into the code editor and then take the 404.php file.
You can find “dead links” on your blog using a tool called “validator” which is created by W3.org.
Good Practice for 404-Error-pages
- Represent your blogs main overview page, so the chance to gather and help the user increase
- Show phone number (if any), contact information or a support option on the page.
- Let the layout and design clearly reflect that the user has landed in your business
- Try to prevent Google from indexing your 404-error pages
- Communicate at eye level without the use of technical terms (by no means all eh a “404 error” is.
- Make possible a search or a sitemap that can guide users on track
Hint: Create a 404-error-widget from Google, so users can find your content via a search See more on Google
How to Prevent Indexing of Content
There can often be folders, pages or other files, there is no reason for users to find in Google’s organic search results. It can be anything from file folders with small pieces of artwork that you use to style your Web layout with your “lie-in-cart pages, business conditions, 404 pages, or miscellaneous documents that you will not be indexed by Google.
Use Nofollow, Noindex Meta Tag
A very simple way to keep search engines away is to insert the following code in the page’s HTML header:
<meta name=”robots” value=”noindex,nofollow”/>
Use Robots.txt
Using a robots.txt file let you tell search engines exactly what areas of your blog you do not wish to get indexed. Simply create a file named “robots.txt” and place it in the root of your website. So the url is this:
http://blogname.com/robots.txt
Example of an Robots.txt-file
User-agent: *
# Can’t be indexed
Disallow: /private/
Disallow: /404.php
Disallow: /pdf/
Allow: /private/can-be-indexed.html
User-agent: Googlebot-Image
Disallow: image.jpg
In the example indicates “disallow” to the folder or file which is then not indexed. Labeled “Allow:” you can select individual files or subfolders as well be indexed. Garden gate “#” you can use to make a small description of yourself that can help you organize the contents of robots.rxr. If you wish only to exclude “Google Billedsøgnin” from indexing the various pictures, write “Googlebot-Image” by “User-Agent:”. The folders or files that you enter on the lines then in robots.txt will not be indexed and displayed in Google Image results.
This definitely is a hardcore article and sorry for that. Hope you could understand it!
[Tutorial Tuesday] How to Install The Polling Plugin Democracy
Yesterday a friend of mine called Sarge asked everyone what polling software we used. I replied him telling him that i used Democracy. Democracy is a great plugin for WordPress. It works with every new version of WordPress.
You can create polls, edit polls, edit various settings. All in all it’s a very good plugin. However there’s a problem with the installation. Last time I installed it, I needed to move a file from the democracy directory to the WordPress plugin directory. So I wanted to make a little text based tutorial.
Note: In future Tutorial Tuesday lesson I’ll use podcasts and/or videos to explain the things I’m talking about, to make it easier to understand.
Firstly you need to install the plugin. You may know this already however, if you don’t just follow step 1. that’ll lead you in the right direction.. Hopefully.
1. First download the plugin.
This is easy. Go to your WordPress dashboard and open the tab called Plugins. Then click on the link to Add New then search for “democracy”. Then click on Install in the upper right corner (it should be the first result).
Then a silly popup will come to your face, then click Install Now, again in the upper right corner.
Then you will be redirected to another page, which (hopefully) will tell you this: Successfully installed the plugin. When you get that, just click Activate plugin. Then it should be active.
2. Setting Up The Plugin
This is the part that is the hardest/you need to be a bit technical. You have to log into your FTP server where WordPress is installed.
Then go to: wp-content, then plugins. Then go to the folder “democracy”. Then move the file “widget_democracy.php” to folder before democracy, the folder “plugins”.
Bit tricky, but should be done easy, as long you know how to use a FTP client. Otherwise write in the comments.
Go to the Installed plugins page and activate the new plugin.
3. Use The Plugin
Now go to the tab Appearance, and clicking the link “Widgets”. Then add the Democracywidget to your sidebar if you want it to appear there.
Of course you can go to the Posts tab and choose Democracy Poll to change settings etc.
Hope this tutorial was good enough, and you got a poll software installed. Good luck!
Follow me on Twitter
Let's be Friends!
Add me on Digg
Let's Connect!
Hello, I'm Mikkel Juhl, young blogger. I started blogging in 2007, let's say that I've been around for a while. I'm 14 years old, I have a passion for