| Home | Articles | Archive | Links |


- Linking
When Wordpress Permalinks 404
When Linking Create Powerful Anchor...
- SEO
What To Do When Website Ranking...
When Is Google Adsense A Good...
- Earning Money
What Makes A Great Web Business...
- Hosting
What Is Web Hosting
What Is Web Hosting And What Do We...
What Is Web Hosting Uptime And What...
What Should You Expect To Pay For...
What To Ask For At Your Web Hosting...
What To Look For In A Web Host
What You Should Know About Your Web...
When It s Time For A Dedicated...
Where Should You Host Your Blog
- Adsense
Where To Buy Adsense Keyword List
- Auction
What You Need To Know Before You Get...
When And How To Cancel An Ebay...
When And How To Withdraw Your Ebay...
When Is The Best Time To List On...
When Things Go Wrong How To Resolve...
- Misc
What Is The Point Of Web Directories...
What Is VoIP Technology
What Is Web Site Monitoring All...
What Is Your Online Portfolio Worth...
What Made Yahoo Number One
What Makes A Successful E Commerce...
What Makes E bay Stand Out For...
What s In A Title But A Name
What Seems To Be Missing In Your Web...
What To Do When After Winning A Bid...
What To Look For In A Private Label...
What To Look For In A Turnkey...
What To Look For When Starting...
What You Must Know About Selling...
What You Need To Know About Using An...
When Not To Use Buy Now
When Selling On E bay Matters
When To Buy Now And When To Bid
When To Do It Yourself And When...
Where Do All These Internet...
Where Spyware Lurks On The Internet

When Wordpress Permalinks 404



T


he 404/Not Found error          will not display it.)             
message is one of the most                                        
hated screens on the            In most cases, the 404 error      
Internet; it indicates that           comes up when a page has been     
though you, the browser, were         moved or deleted from a site.     
able to communicate with the          However, in the case of           
server, the page you need was not     WordPress, an annoying bug can    
delivered either because it was       cause permalinks to point to the  
not found or because the server       404 page instead of the page you  
for some reason was configured to     want to have it bring up.         
not fulfill the request (which is                                       
happening in some countries with      How Do WordPress Permalinks Work? 
pages containing illegal                                                
content).                             Permalinks are permanent URLs     
                                      generated to point to your        
The page you actually see is not      individual weblog posts,          
generated by your computer;           categories, and weblog lists.     
instead, it is a special page on      Other bloggers will use a         
the server you've tried to            permalink to point to your post   
contact. Many web sites create        from their own articles, or you   
their own special 404 pages           can send links to other people    
either for artistic reasons, or       via a permalink. When they are    
because the site owner wants to       linked to an individual post, the 
put specific data, like contact       URL is supposed to be permanent,  
or redirect information, on the       not dynamic (changing).           
page. In Apache, having your own                                        
special 404 page is as simple as      The three types of permalinks     
modifying the .htaccess file.         WordPress delivers are the        
(The only caveat: the page must       Default (aka "Ugly") form, mod    
be larger than 512 bytes or IE        rewrite ("Pretty"), and PATHINFO  



("Almost Pretty").                    target="_blank">http://example.co 
                                      m/index.php/yyyy/mm/dd/post-name/ 
Default links are formatted            , and will work on other     
according to the default settings     server types besides Apache.      
of a new WordPress install, and                                         
will work on all server               Because you're going from a       
environments. It looks like this:     dynamic to a fixed environment    
title="http://example.com/?p=N"       of things can go wrong with them. 
target="_blank">http://example.co     For instance, if your server      
m/?p=N
, N being a number. It     includes Frontpage Extensions,    
is neither neat nor elegant, but      permalinks will not function at   
it does the job. Pretty mod           all without doing a manual fix.   
rewrite links look more like          Without this fix, any changes to  
this: href="http://example.com/yyyy/mm/     WordPress admin interface will    
dd/post-name/"                        corrupt the Frontpage server      
title="http://example.com/yyyy/mm     extensions because it interferes  
/dd/post-name/"                       with the .htaccess file.          
target="_blank">http://example.co                                       
m/yyyy/mm/dd/post-name/ .         Long permalinks can get chopped   
These permalinks require Apache's     off as well, with only part of it 
mod_rewrite module, and won't         working properly or with the      
work on other server types.           entire link disabled. This will   
PATHINFO permalinks look like         cause a 404 error to be generated 
this: href="http://example.com/index.ph     something wrong with your         
p/yyyy/mm/dd/post-name/"              permalink, rather because the     
title="http://example.com/index.p     title is too long. You can fix it 
hp/yyyy/mm/dd/post-name/"             by editing your .htaccess file to 



add a line:                           When you're creating permalinks,  
                                      another strange thing can happen: 
RewriteRule                           your WordPress blog must start    
^post/([0-9]+)?/?([0-9]+)?/?$         the process of creating a         
/index.php?p=$1&page=$2 [QSA]         permalink before it knows whether 
                                      or not the page you're creating   
You can also make a habit of          one for actually exists. If it    
posting URLs with angle brackets      doesn't, too late - your link is  
() on either end. Most email and      already pointing at a 404 page.   
other problematic software won't      To repair this, you need to       
truncate URLs formatted this way.     include a 404 direction in the    
                                      header of your .htaccess file so  
Permalink Structure in WordPress      that your rewrite conditions      
                                      allow for a not-found error, and  
When your links don't work, it's      simply eliminate that page from   
often because you didn't update       your permalinks task. Try adding  
your Permalink structure. Every       the following line above the      
time you add a new static page to     WordPress rewrite rules, outside  
your WordPress files, you must        of #BEGIN Wordpress[...]#END      
generate and update new rules to      Wordpress. Some plugins will      
the .htaccess (which in newer         overwrite this part if you edit   
versions is taken care of through     the permalinks structure if it's  
the admin control area). If you       in the wrong place.               
don't get a page returned at all,                                       
even a 404, and you use PHP 4.4       ErrorDocument                     
or 5 with Apache 2, you should        404/index.php?error=404?          
look that up in the PHP bugs and                                        
issues pages. This is a specific      Another solution is to use this   
known bug.                            following:                        
                                                                        



ErrorDocument                         One more thing: if you use the    
404/foo/index.php?error=404           xampp setup, your WordPress       
                                      permalinks won't work at all in   
foo = the directory you are using     the default installation..        
as a blog. The structure should                                         
be like this:                         The ultimate solution is actually 
                                      to install WordPress 2.0.2; this  
/foo/%category%/%postname%/           new version has repaired the      
                                      permalinks problem as well as a   
If you call a nonexistent             number of other problems.         
directory, however, you're still                                        
going to get that 404 permalink.      Always double-check all your      
                                      pages before you start working    
You can automate your permalinks      with permalinks, and after you've 
tasks with several plugins,           permalinked them. In some cases,  
though. The Ultimate Tag Warrior      you may have to delete all the    
(UTW) has gotten some good            permalinks and start over, but in 
reviews, especially for               most cases just taking a look at  
search-engine sensitive pages.        what you're telling your server   
Google Sitemaps is a good plugin      to do will prevent you from       
as well.                              making a lot of stupid mistakes.  
                                      

                              






About the Author:

http://www.theinternetone.net


Read more articles by: Danny Wirken

Article Source: www.iSnare.com


...Archive >>

Submit Your Site
Recent Articles
  • Web Design Course – You Don’t Need to Go Back to College!

    A quality Web design course can arm you with the skills and knowledge for making big money as a Web designer, or just give you the confidence to build your own fabulous site with ease But you don’t have to spend big bucks and years of your time on a college degree to become a first rate Webmaster In fact there are multiple online Web design courses that will give you a basic, intermediate, and even expert level of skill in the Web development arena...

  • How to Recover Deleted Emails and Restore Them Completely

    It can happen to anyone We accidentally delete an email that we really need And it just happened to be important work file, attachment or picture...

  • Advantages of Wireless Internet

    Wireless internet or Wi-Fi is one of the latest developments in providing people with Internet access whenever they need it - even while traveling This is a convenient way to stay connected with family members or business clients anytime of the day With the fast evolution and advancement of the Internet, millions of people all over the world make use of the Internet in their daily life...

  • Online Gift Shopping

    If you are looking for a birthday gift, wedding gift or Christmas gift this year try shopping online and you will be pleasantly surprised by the extensive range of gift ideas available to you If you are stuck for something to get or struggling to find exactly what you want on the high street, online shopping is the perfect solution for you The world is your oyster when you shop online for those all important special birthday gifts, wedding gifts, personalised gifts or whatever the case may be...

    Copyright (c) 2008 Isnare.com. All rights reserved.

  • Google
    When Wordpress Permalinks 404