.: When Wordpress Permalinks 404

By:Danny Wirken

Category:Home / Internet Marketing

The 404/Not Found error message is one of the most hated screens on the Internet; it indicates that though you, the browser, were able to communicate with the server, the page you need was not delivered either because it was not found or because the server for some reason was configured to not fulfill the request (which is happening in some countries with pages containing illegal content).



The page you actually see is not generated by your computer; instead, it is a special page on the server you've tried to contact. Many web sites create their own special 404 pages either for artistic reasons, or because the site owner wants to put specific data, like contact or redirect information, on the page. In Apache, having your own special 404 page is as simple as modifying the .htaccess file. (The only caveat: the page must be larger than 512 bytes or IE will not display it.)



In most cases, the 404 error comes up when a page has been moved or deleted from a site. However, in the case of WordPress, an annoying bug can cause permalinks to point to the 404 page instead of the page you want to have it bring up.



How Do WordPress Permalinks Work?



Permalinks are permanent URLs generated to point to your individual weblog posts, categories, and weblog lists. Other bloggers will use a permalink to point to your post from their own articles, or you can send links to other people via a permalink. When they are linked to an individual post, the URL is supposed to be permanent, not dynamic (changing).



The three types of permalinks WordPress delivers are the Default (aka "Ugly") form, mod rewrite ("Pretty"), and PATHINFO ("Almost Pretty").



Default links are formatted according to the default settings of a new WordPress install, and will work on all server environments. It looks like this: http://example.com/?p=N , N being a number. It is neither neat nor elegant, but it does the job. Pretty mod rewrite links look more like this: http://example.com/yyyy/mm/dd/post-name/ . These permalinks require Apache's mod_rewrite module, and won't work on other server types. PATHINFO permalinks look like this: http://example.com/index.php/yyyy/mm/dd/post-name/ , and will work on other server types besides Apache.



Because you're going from a dynamic to a fixed environment with your permalinks, a variety of things can go wrong with them. For instance, if your server includes Frontpage Extensions, permalinks will not function at all without doing a manual fix. Without this fix, any changes to the permalinks section from the WordPress admin interface will corrupt the Frontpage server extensions because it interferes with the .htaccess file.



Long permalinks can get chopped off as well, with only part of it working properly or with the entire link disabled. This will cause a 404 error to be generated – but not because there's something wrong with your permalink, rather because the title is too long. You can fix it by editing your .htaccess file to add a line:



RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /index.php?p=$1&page=$2 [QSA]



You can also make a habit of posting URLs with angle brackets () on either end. Most email and other problematic software won't truncate URLs formatted this way.



Permalink Structure in WordPress



When your links don't work, it's often because you didn't update your Permalink structure. Every time you add a new static page to your WordPress files, you must generate and update new rules to the .htaccess (which in newer versions is taken care of through the admin control area). If you don't get a page returned at all, even a 404, and you use PHP 4.4 or 5 with Apache 2, you should look that up in the PHP bugs and issues pages. This is a specific known bug.



When you're creating permalinks, another strange thing can happen: your WordPress blog must start the process of creating a permalink before it knows whether or not the page you're creating one for actually exists. If it doesn't, too late – your link is already pointing at a 404 page. To repair this, you need to include a 404 direction in the header of your .htaccess file so that your rewrite conditions allow for a not-found error, and simply eliminate that page from your permalinks task. Try adding the following line above the WordPress rewrite rules, outside of #BEGIN Wordpress[...]#END Wordpress. Some plugins will overwrite this part if you edit the permalinks structure if it's in the wrong place.



ErrorDocument 404/index.php?error=404?



Another solution is to use this following:



ErrorDocument 404/foo/index.php?error=404



foo = the directory you are using as a blog. The structure should be like this:



/foo/%category%/%postname%/



If you call a nonexistent directory, however, you're still going to get that 404 permalink.



You can automate your permalinks tasks with several plugins, though. The Ultimate Tag Warrior (UTW) has gotten some good reviews, especially for search-engine sensitive pages. Google Sitemaps is a good plugin as well.



One more thing: if you use the xampp setup, your WordPress permalinks won't work at all in the default installation..



The ultimate solution is actually to install WordPress 2.0.2; this new version has repaired the permalinks problem as well as a number of other problems.



Always double-check all your pages before you start working with permalinks, and after you've permalinked them. In some cases, you may have to delete all the permalinks and start over, but in most cases just taking a look at what you're telling your server to do will prevent you from making a lot of stupid mistakes.

Digg del.icio.us Blink Stumble Spurl Reddit Netscape Furl

Article keywords: wordpress, software solutions, computer, technology

Article Source: http://www.articles32.com

www.theinternetone.net





.: New Internet Marketing Articles

1). Using Message Boards for Internet Marketing
Banner advertisements, website promotion, search engine optimization, email marketing and affiliate marketing all fall under the umbrella of the term Internet marketing but there is even more to Internet marketing than those concepts.

2). Perceived Value: What is it and Why is it Important to You as an Information Marketer?
A physical information product has a perceived value based on its look, packaging, number of components, etc. This article examines how perceived value impacts you as an information marketer.

3). New Product Launch Checklist
Guidelines to follow when launching a new information product.

4). Increasing Your Online Business Profitability
This article outlines some methods that you can use to increase your online profitability.

5). 7 Tips for Information Marketers
Tips for information marketers to increase the perceived value of your information product and to maximize revenues.

6). International Business Job Opportunities On The Internet
One of the best ways to find excellent money-making prospects these days is to look on the internet.

7). The Pro and Cons of Network Marketing
Would you rather earn 1% of 100 people efforts or earn 100% of your own effort?


.: Top Internet Marketing Articles

1). Sign Our Guestbook – How Signing Guestbook’s Or Creating Your Own Helps Your Website
Guestbook’s are some of the most popular areas on websites. Before a consumer does business with you, they are likely to check out your guestbook. Guestbook’s are somewhat like testimonials in that they offer real feedback on your site, your business, and your products. They are honest and are created from those that have had some sort of experience with your business or those who simply visit your site.

2). See Your Hotmail and Myspace Accounts From the Office
Don't let the local network censorware get you down. With a few simple steps you can bypass the local web filters and see sites from work like hotmail and myspace. With the increasing number of companies now using some kind of censorware in the workplace more and more people are blocked from selected websites, you donot need to be one of them. Many people have valid reasons to visit such site even form work on occasion.

3). Where To Find A MySpace Friend Adder
MySpace friend adders have become a great tool in maximizing the MySpace experience. Since MySpace has become popular, so has the importance of having tons of MySpace friends. This can benefit the causal MySpace user, the MySpace Music artist, and even the web publishers and marketers that use MySpace as a stepping stone toward success. Now MySpace friend adders have gone even further by adding other MySpace abilities to their programming.

4). The Fly & The Window Of Opportunity
Copyright 2006 1stPromotion.com One afternoon after going through a small backlog of emails, I was daydreaming about how it shouldn't be tough for absolutely anyone out there to make that first online sale and then to go on and make more and more sales. I feel bad for people that have paid money for some of the programs out there that promise to "stuff their wallets effortlessly" only to find that there is no free lunch.

5). One of the Quickest and Easiest Way to Dramatically Increase Your Website’s Page Rank
This is one of the easiest and fastest ways that you can increase the number of one way links to your website and dominate your competition.

6). The Four Big Adsense Secrets
Is there a BIG secret to the huge Adsense checks? Yes, you’ve seen those screen shots of 5-figure Adsense earning … so have I. And that made you thinking, why are some people earning those huge income, and you are not. Whatever people may say, I only see these are the only factors that make the difference between your earning and those ‘big-guns’. 1 - Adsense Placement Yes, putting your Adsense in a special way can be the difference between 1% click-through rate (CTR) and 10% CTR.

7). 10 Profitable Reasons To Add A Discussion Board Or Chat Room To Your Web Site
1. You'll be able to communicate with your visitors. They'll begin to trust you and get to know you on a more personal level. People will purchase products quicker from somebody they already know and trust. 2. People will revisit your web site to participate on your discussion board or chat room. They will meet other people with similar interests and your web site will become a hang out were they can chat.


Page loaded in 0.029 seconds.