<?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>WSI Blog &#187; Website Development</title>
	<atom:link href="http://www.wsi-ebizsolutions.biz/blog/category/website-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wsi-ebizsolutions.biz/blog</link>
	<description>Website Development and Internet Marketing Blog</description>
	<lastBuildDate>Fri, 23 Jul 2010 13:12:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Meltham Crossroads New Website Launch</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/meltham-crossroads-website-launch/2010/04/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/meltham-crossroads-website-launch/2010/04/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 13:38:57 +0000</pubDate>
		<dc:creator>Lisa Chirgwin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=831</guid>
		<description><![CDATA[We have recently launched The Crossroads Project new website.

We were approached by the Committee in January to plan a new and modern replacement to the old website.  After meeting with the Committee we were able to develop a new website that promoted the Needs of the Charity.  Our main aim was to build a site that was really simple for the volunteers to work with so that they can upload their latest news and images onto the site]]></description>
			<content:encoded><![CDATA[<p>We have recently launched The Crossroads Project new website.</p>
<p>We were approached by the Committee in January to plan a new and modern replacement to the old website.  After meeting with the Committee we were able to develop a new website that promoted the Needs of the Charity.  Our main aim was to build a site that was really simple for the volunteers to work with so that they can upload their latest news and images onto the site.<span id="more-831"></span></p>
<p style="text-align: center;"><a href="http://www.melthamcrossroads.co.uk"><img class="size-medium wp-image-833  aligncenter" title="Meltham Crossroads" src="http://www.wsi-ebizsolutions.biz/blog/wp-content/uploads/2010/04/final-concept-with-logo-300x223.jpg" alt="Meltham Crossroads" width="300" height="223" /></a></p>
<p>In 1997 the Crossroads Centre was opened, funded by some of the money raised in the Crossroads Shop.  The premises are on Holmfirth Road in Meltham, opposite the Fire station. Free, confidential, advice and information is given by recognised agencies.  Advice is offered by the Citizen’s Advice Bureau, Ridley and Hall Solicitors, Work Link and Support 2 Recovery.  A counselling service is provided by UCHM (United Churches Healing Ministry) and clients are asked to make a contribution to the cost of this service.  Around 25 Crossroads Volunteers work hard to support the project and the running of the shop and centre.</p>
<p>The site was completed at the end of March and we were invited to a ‘Low Key’ Launch party.  We are looking forward to a great working relationship with the team at Meltham Crossroads.</p>
<p style="text-align: center;"><img class="size-full wp-image-834  aligncenter" title="Crossroads Balloon Launch" src="http://www.wsi-ebizsolutions.biz/blog/wp-content/uploads/2010/04/Crossroads-Balloon-Launch.JPG" alt="Crossroads Balloon Launch" width="445" height="328" /></p>
<p><strong><em> Hi Steve</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em>Thank you very much for our new website &#8211; we love it &#8211; its attractive and easy to use.</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em>Thank you for joining us at our very &#8216;low key&#8217; balloon launch this morning.  We look forward to a continuing relationship with you as you host the site.</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em>All best wishes</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em>Jean</em></strong></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/child-poverty-history-update/2009/12/" rel="bookmark" class="crp_title">Make Child Poverty History Update</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/images-appearing-google-adwords/2009/10/" rel="bookmark" class="crp_title">Images Appearing on Google AdWords</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/css-3-tools-web-designers/2009/11/" rel="bookmark" class="crp_title">CSS 3: New Tools For Web Designers</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/typography-web/2009/11/" rel="bookmark" class="crp_title">Better Typography On The Web</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/wsi-visits-google/2009/07/" rel="bookmark" class="crp_title">WSI Yorkshire Visits Google</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;title=Meltham%20Crossroads%20New%20Website%20Launch&amp;bodytext=We%20have%20recently%20launched%20The%20Crossroads%20Project%20new%20website.%0D%0A%0D%0AWe%20were%20approached%20by%20the%20Committee%20in%20January%20to%20plan%20a%20new%20and%20modern%20replacement%20to%20the%20old%20website.%20%20After%20meeting%20with%20the%20Committee%20we%20were%20able%20to%20develop%20a%20new%20website%20that%20promoted%20the%20Needs%20of%20the%20Charity.%20%20Our%20main%20aim%20was%20to%20build%20a%20site%20that%20was%20really%20simple%20for%20the%20volunteers%20to%20work%20with%20so%20that%20they%20can%20upload%20their%20latest%20news%20and%20images%20onto%20the%20site" title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;title=Meltham%20Crossroads%20New%20Website%20Launch&amp;notes=We%20have%20recently%20launched%20The%20Crossroads%20Project%20new%20website.%0D%0A%0D%0AWe%20were%20approached%20by%20the%20Committee%20in%20January%20to%20plan%20a%20new%20and%20modern%20replacement%20to%20the%20old%20website.%20%20After%20meeting%20with%20the%20Committee%20we%20were%20able%20to%20develop%20a%20new%20website%20that%20promoted%20the%20Needs%20of%20the%20Charity.%20%20Our%20main%20aim%20was%20to%20build%20a%20site%20that%20was%20really%20simple%20for%20the%20volunteers%20to%20work%20with%20so%20that%20they%20can%20upload%20their%20latest%20news%20and%20images%20onto%20the%20site" title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;t=Meltham%20Crossroads%20New%20Website%20Launch" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;title=Meltham%20Crossroads%20New%20Website%20Launch&amp;annotation=We%20have%20recently%20launched%20The%20Crossroads%20Project%20new%20website.%0D%0A%0D%0AWe%20were%20approached%20by%20the%20Committee%20in%20January%20to%20plan%20a%20new%20and%20modern%20replacement%20to%20the%20old%20website.%20%20After%20meeting%20with%20the%20Committee%20we%20were%20able%20to%20develop%20a%20new%20website%20that%20promoted%20the%20Needs%20of%20the%20Charity.%20%20Our%20main%20aim%20was%20to%20build%20a%20site%20that%20was%20really%20simple%20for%20the%20volunteers%20to%20work%20with%20so%20that%20they%20can%20upload%20their%20latest%20news%20and%20images%20onto%20the%20site" title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Meltham%20Crossroads%20New%20Website%20Launch&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;title=Meltham%20Crossroads%20New%20Website%20Launch&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=We%20have%20recently%20launched%20The%20Crossroads%20Project%20new%20website.%0D%0A%0D%0AWe%20were%20approached%20by%20the%20Committee%20in%20January%20to%20plan%20a%20new%20and%20modern%20replacement%20to%20the%20old%20website.%20%20After%20meeting%20with%20the%20Committee%20we%20were%20able%20to%20develop%20a%20new%20website%20that%20promoted%20the%20Needs%20of%20the%20Charity.%20%20Our%20main%20aim%20was%20to%20build%20a%20site%20that%20was%20really%20simple%20for%20the%20volunteers%20to%20work%20with%20so%20that%20they%20can%20upload%20their%20latest%20news%20and%20images%20onto%20the%20site" title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;t=Meltham%20Crossroads%20New%20Website%20Launch" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;title=Meltham%20Crossroads%20New%20Website%20Launch&amp;body=We%20have%20recently%20launched%20The%20Crossroads%20Project%20new%20website.%0D%0A%0D%0AWe%20were%20approached%20by%20the%20Committee%20in%20January%20to%20plan%20a%20new%20and%20modern%20replacement%20to%20the%20old%20website.%20%20After%20meeting%20with%20the%20Committee%20we%20were%20able%20to%20develop%20a%20new%20website%20that%20promoted%20the%20Needs%20of%20the%20Charity.%20%20Our%20main%20aim%20was%20to%20build%20a%20site%20that%20was%20really%20simple%20for%20the%20volunteers%20to%20work%20with%20so%20that%20they%20can%20upload%20their%20latest%20news%20and%20images%20onto%20the%20site" title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;title=Meltham%20Crossroads%20New%20Website%20Launch" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Meltham%20Crossroads%20New%20Website%20Launch&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F&amp;title=Meltham%20Crossroads%20New%20Website%20Launch" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Meltham%20Crossroads%20New%20Website%20Launch%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fmeltham-crossroads-website-launch%2F2010%2F04%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/meltham-crossroads-website-launch/2010/04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Propagation of Misconceptions About IT in the Media</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/propagation-misconceptions-media/2010/03/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/propagation-misconceptions-media/2010/03/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 16:18:54 +0000</pubDate>
		<dc:creator>Barnaby Knowles</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=782</guid>
		<description><![CDATA[IT and technology-related issues are frequently reported in the media. Many times articles contain factual inaccuracies. The problem is that reporters are not "techies" and often provide misleading or erroneous analyses.]]></description>
			<content:encoded><![CDATA[<p>IT and technology-related issues are frequently reported in the media. A well-known website is hacked, a new technology is unveiled, user feedback is discussed&#8230; Many times articles contain factual inaccuracies. The problem is that reporters are not &#8220;techies&#8221; and often provide misleading or erroneous analyses.</p>
<p><span id="more-782"></span></p>
<h2>Fake drug scam hijacks UK college websites</h2>
<p>The <a href="http://news.bbc.co.uk/1/hi/technology/8550219.stm" rel="external nofollow">BBC</a> recently reported that &#8220;UK academic institutions have unwittingly become the accomplices of criminals selling fake drugs online.&#8221; The article went on to state that this had happened because spammers had &#8220;exploited vulnerabilities&#8221; in the PHP scripting language. As a PHP programmer I take exception to this claim, as should website owners and web design agencies, for reasons that I will explain later.</p>
<p>The article reported how academic websites with the .ac.uk domain extension were unwittingly forwarding visitors to websites selling fake drugs online. Without going into much detail it was explained that spammers had injected code into the web pages, seemingly exploiting vulnerabilities in PHP, that would make Google and other search engines believe that the pages were relevant for searches related to prescription drugs such as Viagra. When a user searched for those terms and visited the website via the link on the search engine results page (SERP), the injected code would detect this and redirect them to the online pharmacy. When a user visited the website by typing in the URL directly or via a non drug0related search, the normal page is displayed.</p>
<h2>Deliberately Targeted</h2>
<p>This is not a random attack; the websites had been specifically targeted. Academic institutions rank very well in search engines because, put simply, they are inherently trusted and as such, the .ac.uk domain extension carries a lot of weight.</p>
<p>An attack like this is also clever because it doesn&#8217;t place visible links to spammers&#8217; websites or make any obvious changes to the web page that has been compromised. Visitors only get redirected to the online pharmacies if they are actually searching for specific terms. This way the website administrator may never know that their scripts have been compromised and remove the spammers&#8217; code!</p>
<p>One such website that has been affected is <a href="http://www.rave.ac.uk/" rel="external nofollow">Ravensbourne College of Design and Communication</a>. Amazingly, four days after the BBC reported that their website had been compromised (and presumably even longer since they found out), the injection in still in place! If you visit <a href="http://www.rave.ac.uk/" rel="external nofollow">www.rave.ac.uk</a> you will see the college&#8217;s official website. If you <a href="http://www.google.com/search?q=Ravensbourne+College+of+Design+and+Communication">search for the college</a> and follow the link in the SERP you will also see the college&#8217;s official website. However, if you <a href="http://www.google.com/search?q=viagra+site%3Arave.ac.uk">search for Viagra</a> and follow the link in the SERP you will not end up on the college&#8217;s website at all, but at a &#8220;Canadian online pharmacy&#8221;!</p>
<h2>What Cost?</h2>
<p>This is all very unfortunate for the college. The negative publicity alone would be bad enough, but they will also have to spend time and money removing the injected code and then plugging the holes that allowed an exploit of this type to happen in the first place.</p>
<p>I mentioned earlier that I would object to the reporting of this a PHP exploit. I believe that this is inaccurate and could lead people to believe that PHP is inherently less secure than other scripting languages. In fact I would not call this a PHP exploit at all &#8211; it&#8217;s slack coding that could have resulted in the same thing happening no matter what scripting language the website was developed in.</p>
<p>From the scant technical details offered in the original article it would appear that the affected websites do not properly validate and filter user input. Of course a website developed in PHP would be vulnerable to rogue code injection attacks if user input is not validated correctly. But for that matter so would any other scripting language!</p>
<p>Aside from my personal objections to the labelling of this incident as a vulnerability within PHP, website owners and web design agencies should also consider the effects of the media when reporting stories like this. If a potential client reads the article and takes from it that &#8220;PHP is not secure&#8221; or &#8220;PHP websites get hacked easily&#8221; and then you pitch a PHP-based website to them, how will that affect your chances of winning the contract? And to a lesser extent, how do stories like this affect the public&#8217;s perception of your current website? Would they feel safe buying from you online when such high-profile PHP websites fall victim to hacking?</p>
<h2>Conclusion</h2>
<p>But what can we in the IT community do? It&#8217;s not realistic to expect journalists to understand that this was poor coding rather than an insecure scripting language. The best that we can do is be aware of what stories are floating around in the news and be sure that we understand and can explain the real issues!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/reducing-form-spam-without-captcha/2009/11/" rel="bookmark" class="crp_title">Reducing Form Spam Without the Use of a CAPTCHA</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/stopped-internet-explorer/2010/01/" rel="bookmark" class="crp_title">Why I stopped using Internet Explorer</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/future-web-intro-html-5/2009/11/" rel="bookmark" class="crp_title">The Future of the Web: Brief intro to HTML 5</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/comparing-mysql-mysqli/2010/02/" rel="bookmark" class="crp_title">Comparing mysql and mysqli</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/ecommerce-website-considerations/2010/02/" rel="bookmark" class="crp_title">E-Commerce Website Considerations</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media&amp;bodytext=IT%20and%20technology-related%20issues%20are%20frequently%20reported%20in%20the%20media.%20Many%20times%20articles%20contain%20factual%20inaccuracies.%20The%20problem%20is%20that%20reporters%20are%20not%20%22techies%22%20and%20often%20provide%20misleading%20or%20erroneous%20analyses." title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media&amp;notes=IT%20and%20technology-related%20issues%20are%20frequently%20reported%20in%20the%20media.%20Many%20times%20articles%20contain%20factual%20inaccuracies.%20The%20problem%20is%20that%20reporters%20are%20not%20%22techies%22%20and%20often%20provide%20misleading%20or%20erroneous%20analyses." title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;t=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media&amp;annotation=IT%20and%20technology-related%20issues%20are%20frequently%20reported%20in%20the%20media.%20Many%20times%20articles%20contain%20factual%20inaccuracies.%20The%20problem%20is%20that%20reporters%20are%20not%20%22techies%22%20and%20often%20provide%20misleading%20or%20erroneous%20analyses." title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=IT%20and%20technology-related%20issues%20are%20frequently%20reported%20in%20the%20media.%20Many%20times%20articles%20contain%20factual%20inaccuracies.%20The%20problem%20is%20that%20reporters%20are%20not%20%22techies%22%20and%20often%20provide%20misleading%20or%20erroneous%20analyses." title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;t=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media&amp;body=IT%20and%20technology-related%20issues%20are%20frequently%20reported%20in%20the%20media.%20Many%20times%20articles%20contain%20factual%20inaccuracies.%20The%20problem%20is%20that%20reporters%20are%20not%20%22techies%22%20and%20often%20provide%20misleading%20or%20erroneous%20analyses." title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F&amp;title=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Propagation%20of%20Misconceptions%20About%20IT%20in%20the%20Media%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpropagation-misconceptions-media%2F2010%2F03%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/propagation-misconceptions-media/2010/03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>User Expectations &#8211; Does Your Website Meet Them?</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/user-expectations-website-meet/2010/03/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/user-expectations-website-meet/2010/03/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:35:15 +0000</pubDate>
		<dc:creator>Chrisi Reid</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Social Networking]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=781</guid>
		<description><![CDATA[Social media discussions of newly launched sites may reveal critical customer expectation shortfalls.]]></description>
			<content:encoded><![CDATA[<p>Inspiration can come from unusual sources. I am a regular reader of several blogs and forums, and happened to notice an interesting discussion on one of these yesterday. The participants were reviewing the newly launched website of a brick-and-mortar shop, and how the site &#8211; despite the company&#8217;s generally good reputation &#8211; failed to meet some critical customer expectations.<br />
<span id="more-781"></span></p>
<h2>Comparing your site to others in your industry</h2>
<p>Although nobody wants their website to be a carbon copy of a competitor&#8217;s, it is important to check your competitors to make sure you&#8217;re offering at least as much information on your site as they offer on theirs.</p>
<p>Things customers might expect from your site, especially if your competitors provide it:</p>
<ul>
<li>Do you clearly display opening hours (if applicable) and contact details?</li>
<li>Do you offer an e-mail address or a contact form?</li>
<li>Do you show prices, a menu, services or a stock list if applicable?</li>
<li>Do you show what payment options you accept, either on your site or in your store?</li>
<li>Do you provide directions or a map?</li>
</ul>
<h2>What your potential customers might be saying about you</h2>
<p>Social media &#8211; forums, blogs and networking sites &#8211; can also have a significant effect on your business. In the case of this particular shop, the majority of their online advertising has been done by word of mouth and user recommendations &#8211; and this has been a factor in their growth as a business.</p>
<p>But the negative reviews of the company&#8217;s newly launched website on a well-used forum with high natural rankings may have a long term effect &#8211; particularly when comparisons have been made and links provided to other industry standard websites that do contain the information that the site users want to see.</p>
<h3>What could this company do?</h3>
<p>A competitor analysis would provide an overview of other sites in the industry, either UK-wide or targeted to their region. This could provide an insight into the expectations of users based on their experience of other companies&#8217; websites.</p>
<p>Performing a <a href="http://www.wsi-ebizsolutions.biz/free-webscan-report_30.html">WebScan</a> on their site would help ensure that the site is optimised, search-engine friendly and compliant with W3C standards.</p>
<p>And lastly, <a href="http://www.wsi-ebizsolutions.biz/social-media-monitoring_66.html">social media monitoring</a> would highlight issues like the discussion of the current website, so that appropriate action &#8211; whether that be revising the website to meet expectations or responding to the discussion to explain the reasoning behind the current site&#8217;s design &#8211; can be taken.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/social-media-monitoring-service/2009/11/" rel="bookmark" class="crp_title">Social Media Monitoring Service</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/shopping-online-holidays/2009/12/" rel="bookmark" class="crp_title">Shopping Online for the Holidays</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/is-social-media-really-driving-online-sales/2010/02/" rel="bookmark" class="crp_title">Is Social Media Really Driving Online Sales</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/internet-marketing-2010-real-time-search-social-media-conversion-rates/2010/01/" rel="bookmark" class="crp_title">Internet Marketing 2010: Real Time Search, Social Media and Conversion Rates</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/betterbusinessmarketing/2010/07/" rel="bookmark" class="crp_title">Better Business Marketing – Facebook Style</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F&amp;bodytext=Social%20media%20discussions%20of%20newly%20launched%20sites%20may%20reveal%20critical%20customer%20expectation%20shortfalls." title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F&amp;notes=Social%20media%20discussions%20of%20newly%20launched%20sites%20may%20reveal%20critical%20customer%20expectation%20shortfalls." title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;t=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F&amp;annotation=Social%20media%20discussions%20of%20newly%20launched%20sites%20may%20reveal%20critical%20customer%20expectation%20shortfalls." title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=Social%20media%20discussions%20of%20newly%20launched%20sites%20may%20reveal%20critical%20customer%20expectation%20shortfalls." title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;t=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F&amp;body=Social%20media%20discussions%20of%20newly%20launched%20sites%20may%20reveal%20critical%20customer%20expectation%20shortfalls." title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F&amp;title=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=User%20Expectations%20-%20Does%20Your%20Website%20Meet%20Them%3F%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fuser-expectations-website-meet%2F2010%2F03%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/user-expectations-website-meet/2010/03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparing mysql and mysqli</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/comparing-mysql-mysqli/2010/02/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/comparing-mysql-mysqli/2010/02/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 15:22:32 +0000</pubDate>
		<dc:creator>Barnaby Knowles</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQLi]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=772</guid>
		<description><![CDATA[Comparison of PHP's mysql and mysqli extensions.]]></description>
			<content:encoded><![CDATA[<p>PHP offers you more than one way to connect and interact with your MySQL database. Two common ways to interact with MySQL through your PHP script are the <em>mysql</em> and the <em>mysqli</em> extensions. Both accomplish similar things but there are distinct and notable differences between the two.</p>
<p><span id="more-772"></span></p>
<h2>PHP&#8217;s MySQL Extension</h2>
<p>PHP&#8217;s <em>mysql</em> extension is the original extension that was designed to allow you to develop PHP applications that interact with your MySQL database. The <em>mysql</em> extension was introduced prior to PHP version 3 and provides a procedural interface only. This extension is intended for use only with MySQL versions older than 4.1.3. It can be used with newer versions of MySQL, but not all of the latest MySQL server features will be available.</p>
<h2>PHP&#8217;s mysqli Extension</h2>
<p>PHP also offers a more recent <em>mysqli</em> extension, sometimes known as the MySQL <em>improved</em> extension. The <em>mysqli</em> extension is included with PHP versions 5 and later and was developed to take advantage of new features found in MySQL versions 4.1.3 and newer. <em>mysqli</em> provides both an object-oriented and a procedural interface.</p>
<h2>Why to Use the mysqli Extension</h2>
<p>The PHP development team strongly recommends that if you are using MySQL versions 4.1.3 or later you should use the <em>mysqli</em> extension rather than the original <em>mysql</em> extension. The key reasons for using <em>mysqli</em> over <em>mysql</em> are:</p>
<ul>
<li>Object-oriented interface</li>
<li>Support for Prepared Statements</li>
<li>Support for Stored Procedures</li>
<li>Support for Multiple Statements</li>
<li>Support for Transactions</li>
<li>Enhanced debugging capabilities</li>
<li>Embedded server support</li>
</ul>
<p>Additionally the <em>mysql</em> extension is no longer being actively developed by the MySQL development team, whilst the <em>mysqli</em> extension under active development. It also supports multiple statements and character sets, whereas the <em>mysql</em> extension does not.</p>
<h2>But&#8230;</h2>
<p>Although the PHP development team strongly recommend that you use the <em>mysqli</em> extension if you&#8217;re using MySQL versions 4.1.3 or later, there is a debate about speeds differences between the two extensions. There is evidence (<a href="http://af-design.com/blog/2009/01/30/php-mysql-vs-mysqli-database-access-metrics/" rel="external nofollow">example</a>) to suggest that although under certain circumstances <em>mysqli</em> is faster, for everyday use <em>mysql</em> actually performs better in terms of speed than its more modern counterpart!</p>
<p>However, the tiny speed advantage to using <em>mysql</em> rather than <em>mysqli</em> is probably outweighed by the newer extension&#8217;s benefits.</p>
<h2>Conclusion</h2>
<p>Although it might be true that <em>mysql</em> is ever so slightly faster than <em>mysqli</em>, it&#8217;s still worth following the PHP development team&#8217;s advice and using the newer extension. <em>mysqli</em> gives you access to the features available in MySQL versions 4.1.3 or later and it&#8217;s more flexible than the <em>mysql</em> extension. In addition to that, as the <em>mysql</em> extension is no longer under active development by the MySQL team there is no guarantee that it will be included in future PHP releases.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/optimal-mysql-data-types/2010/01/" rel="bookmark" class="crp_title">Choosing an Optimal MySQL Data Type</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/choose-web-hosting/2009/11/" rel="bookmark" class="crp_title">How To Choose Your Web Hosting</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/future-php-php-6/2009/12/" rel="bookmark" class="crp_title">The Future of PHP : A Brief Look at PHP 6</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/new-wolfram-alpha-engine/2009/05/" rel="bookmark" class="crp_title">New Wolfram Alpha Engine</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/propagation-misconceptions-media/2010/03/" rel="bookmark" class="crp_title">Propagation of Misconceptions About IT in the Media</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;title=Comparing%20mysql%20and%20mysqli&amp;bodytext=Comparison%20of%20PHP%27s%20mysql%20and%20mysqli%20extensions." title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;title=Comparing%20mysql%20and%20mysqli&amp;notes=Comparison%20of%20PHP%27s%20mysql%20and%20mysqli%20extensions." title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;t=Comparing%20mysql%20and%20mysqli" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;title=Comparing%20mysql%20and%20mysqli&amp;annotation=Comparison%20of%20PHP%27s%20mysql%20and%20mysqli%20extensions." title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Comparing%20mysql%20and%20mysqli&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;title=Comparing%20mysql%20and%20mysqli&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=Comparison%20of%20PHP%27s%20mysql%20and%20mysqli%20extensions." title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;t=Comparing%20mysql%20and%20mysqli" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;title=Comparing%20mysql%20and%20mysqli&amp;body=Comparison%20of%20PHP%27s%20mysql%20and%20mysqli%20extensions." title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;title=Comparing%20mysql%20and%20mysqli" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Comparing%20mysql%20and%20mysqli&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F&amp;title=Comparing%20mysql%20and%20mysqli" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Comparing%20mysql%20and%20mysqli%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcomparing-mysql-mysqli%2F2010%2F02%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/comparing-mysql-mysqli/2010/02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text Formatting in a CMS &#8211; CSS for Clients</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/text-formatting-cms-css-clients/2010/02/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/text-formatting-cms-css-clients/2010/02/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 12:27:48 +0000</pubDate>
		<dc:creator>Chrisi Reid</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[content management]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=748</guid>
		<description><![CDATA[Hold on just one moment... how much does your client know about CSS - and how long is the site content going to retain the look and feel they're so pleased with, if they're not confident with HTML?]]></description>
			<content:encoded><![CDATA[<p>So, you&#8217;ve designed and built a visually attractive website, uploaded the client&#8217;s content and you&#8217;re about to turn it over to the client to maintain themselves. You&#8217;ve used the latest in CSS to create a fantastic look and feel for the site, and you intend to add this site to your portfolio as a showpiece. The client is thrilled with how the site looks, and can&#8217;t wait to start search engine marketing or pay-per-click campaigns to get the traffic coming in.</p>
<p>Hold on just one moment&#8230; how much does your client know about CSS &#8211; and how long is the site content going to retain the look and feel they&#8217;re so pleased with if they&#8217;re not confident with HTML?</p>
<p><span id="more-748"></span></p>
<h2>Clients aren&#8217;t coders.</h2>
<p>Most of them, anyway &#8211; most clients know how to use Microsoft Word, but that might well be the extent of their design knowledge. And, if you&#8217;ve worked with Content Management Systems, you know that copying text from a Microsoft Word document into the CMS can cause some unexpected design complications, and can result in accessibility issues, including loss of W3C compliance. Inserting plain text into the editor helps, but what happens to the formatting?</p>
<p>Using inline formatting is certainly an option, and many clients will opt for this. It&#8217;s quite easy to highlight a segment of text, apply a font size and colour, then set the text alignment. This has the advantage of being truly WYSIWYG, as all changes will show up exactly as the user wants them to in the CMS editor window. There&#8217;s just one small problem.</p>
<p>If your client doesn&#8217;t know exactly what font sizes, colours and alignments are used in the content you set up for them &#8211; not to mention image spacing, table cell padding and other more advanced settings &#8211; it will be very difficult for them to replicate this when they upload their own content. An area of text that looks just about right in the content editor might not look like the rest of the page content when it&#8217;s saved and viewed on the front end.</p>
<h2>But they can apply CSS styles and classes, right?</h2>
<p>Of course, you could supply them with a list of the correct inline style codes or even classes to add for each formatted segment of text&#8230; it adds another page or two in the user manual, but it would ensure that they could produce new pages that look like the content you uploaded for them.  Some clients are quite happy to click on that little HTML button and enter an instruction like <em>class=&#8221;blah&#8221;</em> in the correct part of the page for the content they&#8217;re uploading.</p>
<p>But many content managers don&#8217;t have any web design experience &#8211; they&#8217;re working with the content editor on the basis of a &#8220;Microsoft Word-like&#8221; interface. Looking at the HTML version of a page can be daunting. Those <em>&lt;p&gt;</em> and <em>&lt;/tr&gt;</em> and <em>&lt;a class=&#8221;sausage&#8221; style=&#8221;margin: 5px; float: left; clear: both;&#8221; href=&#8221;/overthere.htm&#8221;&gt;</em> tags don&#8217;t make sense to anyone who doesn&#8217;t know that they&#8217;re looking at the start of a paragraph, the close of a table row or a styled link to a page.  In that respect, it may not be reasonable to expect your clients to be able to add classes or inline styling.</p>
<h2>What&#8217;s the solution?</h2>
<p>I use a combination of two approaches.</p>
<p>First,  in every CMS user guide that WSI Huddersfield produces, we include any applicable inline styling, particularly where <em>&lt;div&gt;</em> sections have been used to create columns or floating text areas, as standard CMS software doesn&#8217;t include an insert-DIV option. This is done by providing a block of code in the user manual with &#8220;your text goes here&#8221; sections in it.</p>
<p>Secondly, in the site creation process, we use CSS to define the appearance of a number of basic functions on the site, like paragraphs, headings and lists. Once this is done the customer can then use your styles with just a click or two to format their text and retain the same look and feel as the content you have uploaded.</p>
<p>For example, you may need a specific format for a Call-to-Action button. Trying to show a client how to do the Call-to-Action buttons with standard text and inline scripting could be quite problematic, even if you explain to your client exactly where to paste the appropriate styling text. But if you have set up the CSS so that using the Heading 5 option in the CMS will automatically make the text appear as a button with a fixed width, floated right and showing a background image and border, it simplifies things considerably.  A client could then enter their normal text, highlight it, and click &#8220;Heading 5&#8243; in the settings.</p>
<h2>Style test pages</h2>
<p>There is one down side to using the CSS styling in this way &#8211; the CMS is no longer quite so WYSIWYG if you&#8217;re using external style sheets, which do not show in the editor window. That formatted H5 wouldn&#8217;t have the styling applied to it, so it would simply appear as plain bold text in the CMS. This is why creating a<strong> </strong>Style Test page is important, so that a client can refer to what something looks like on the front end of the site, and click the right option in the CMS. This test page should show:</p>
<ul>
<li>Headings 1 &#8211;  6</li>
<li>Standard paragraph text</li>
<li>Links</li>
<li>Bullet and numbered lists</li>
<li>Any other formats applied to standard functions</li>
</ul>
<p>This way, your client can see what they need to do to replicate the style of pages already on the site. And helping your client to do that will also help you &#8211; so that the site you are so pleased about will remain a showcase piece once your clients are maintaining their content themselves.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/css-2-making-web-development-tools/2009/12/" rel="bookmark" class="crp_title">CSS 2: Making the Most of Web Development Tools</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/site-built-now-what/2009/11/" rel="bookmark" class="crp_title">The Site Is Built&#8230; Now What Do I Do With It?</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/product-pages-forget-descriptions/2009/10/" rel="bookmark" class="crp_title">Product Pages &#8211; Don&#8217;t Forget Descriptions</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/typography-web/2009/11/" rel="bookmark" class="crp_title">Better Typography On The Web</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/css-3-tools-web-designers/2009/11/" rel="bookmark" class="crp_title">CSS 3: New Tools For Web Designers</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients&amp;bodytext=Hold%20on%20just%20one%20moment...%20how%20much%20does%20your%20client%20know%20about%20CSS%20-%20and%20how%20long%20is%20the%20site%20content%20going%20to%20retain%20the%20look%20and%20feel%20they%27re%20so%20pleased%20with%2C%20if%20they%27re%20not%20confident%20with%20HTML%3F" title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients&amp;notes=Hold%20on%20just%20one%20moment...%20how%20much%20does%20your%20client%20know%20about%20CSS%20-%20and%20how%20long%20is%20the%20site%20content%20going%20to%20retain%20the%20look%20and%20feel%20they%27re%20so%20pleased%20with%2C%20if%20they%27re%20not%20confident%20with%20HTML%3F" title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;t=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients&amp;annotation=Hold%20on%20just%20one%20moment...%20how%20much%20does%20your%20client%20know%20about%20CSS%20-%20and%20how%20long%20is%20the%20site%20content%20going%20to%20retain%20the%20look%20and%20feel%20they%27re%20so%20pleased%20with%2C%20if%20they%27re%20not%20confident%20with%20HTML%3F" title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=Hold%20on%20just%20one%20moment...%20how%20much%20does%20your%20client%20know%20about%20CSS%20-%20and%20how%20long%20is%20the%20site%20content%20going%20to%20retain%20the%20look%20and%20feel%20they%27re%20so%20pleased%20with%2C%20if%20they%27re%20not%20confident%20with%20HTML%3F" title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;t=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients&amp;body=Hold%20on%20just%20one%20moment...%20how%20much%20does%20your%20client%20know%20about%20CSS%20-%20and%20how%20long%20is%20the%20site%20content%20going%20to%20retain%20the%20look%20and%20feel%20they%27re%20so%20pleased%20with%2C%20if%20they%27re%20not%20confident%20with%20HTML%3F" title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F&amp;title=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Text%20Formatting%20in%20a%20CMS%20-%20CSS%20for%20Clients%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Ftext-formatting-cms-css-clients%2F2010%2F02%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/text-formatting-cms-css-clients/2010/02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting to Search Engine Friendly URLs</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/redirecting-search-engine-friendly-urls/2010/02/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/redirecting-search-engine-friendly-urls/2010/02/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 11:19:59 +0000</pubDate>
		<dc:creator>Barnaby Knowles</dc:creator>
				<category><![CDATA[Search Engine Optimisation]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[search engine optimisation]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=694</guid>
		<description><![CDATA[It's worth moving from dynamic URLs to static URLs. Using the techniques outlined here you should not be affected by duplicate content and visitors landing on old URLs should be forwarded to your new URLs without having to take any further action.]]></description>
			<content:encoded><![CDATA[<p>Static URLs are preferable to dynamic URLs that contain variables such as the page ID where search engines are concerned. It&#8217;s worth investing the time and/or money in setting up URL rewriting on your website so that www.example.com/index.php?pageID=1 can now be viewed at www.example.com/page-1.htm or even better at www.example.com/page-name.htm. The latter two URLs appear to be static HTML pages but using Apache&#8217;s mod_rewrite module and an .htaccess file you can serve the same content as the first URL. The next step is to ensure that anyone accessing the original URL is redirected to the correct new URL with a 301 HTTP status code.</p>
<p><span id="more-694"></span></p>
<h2>SEO Unfriendly Pages</h2>
<p>If you&#8217;ve got a CMS or some other sort of database of pages the easiest way to link to them will be something like www.example.com/index.php?pageID=1. After a while you might have started to think about search engine optimisation and concluded that www.example.com/page-1.htm would be a better URL format. You can rewrite the 1 in the URL onto index.php?pageID=1 very easily and achieve a website with static looking URLs in a short time.</p>
<h2>Update Your Links</h2>
<p>However, there will (hopefully) be lots of links out there on the web pointing at your old-style URLs. You don&#8217;t want to serve your page from both URLs, as this would lead to duplicate content and is something that should be avoided for SEO reasons. The best thing to do in this situation is to programme your script so that it will detect visitors coming from the old-style URLs and redirect them seamlessly to the correct new URL.</p>
<p>It would also be a good idea to contact other webmasters that are hosting links to your old-style URLs and ask them to update them with the new URLs.</p>
<h2>Set Up Your Redirects</h2>
<p>There are two ways that you could handle redirecting visitors from the old-style URLs to the new ones.</p>
<p>If you have simple static URLs that include the page ID in the file name (e.g. www.example.com/page-1.htm) then you can add a couple of lines to your .htaccess file and all of your old URLs will be redirected to the correct new URLs.</p>
<p>If you have a more advanced CMS or custom setup that allows you to specify page URLs then you will need to programme your script to detect visitors from old-style URLs, lookup the corresponding new URL and perform a redirect.</p>
<h2>.htaccess Redirects</h2>
<p>Redirecting /index.php?page=1 to /page-1.htm can be accomplished easily using Apache&#8217;s mod_rewrite functionality within your .htaccess file in the root of your website.</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
RewriteEngine On
RewriteCond %{QUERY_STRING} ^pageID=([0-9]+)$
RewriteRule index.php http://www.example.com/page-%1.htm? [R=301,L]
</pre>
<p>That code will redirect any old-style URL containing the pageID as a variable to the correct new URL.</p>
<h2>Programmatical Redirects</h2>
<p>If your new URLs won&#8217;t be as simple as /page-1.htm you probably won&#8217;t be able to simply set up an .htaccess rewrite rule. Instead you&#8217;ll need to take the pageID from the old-style URL and lookup the correct new URL from your database. Once you have the new URL you can forward the visitor with a 301 HTTP status code, which should keep both visitors and search engines happy. Given a little time, search engines should update their indexes to reflect the new URLs, too.</p>
<p>This code, based on the examples that we have been using, should give you an idea of how to set up your redirects:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
&lt;?php
$matches = array();
// Check whether the visitor is coming from an old-style URL with a pageID
// variable appended. Save the pageID so that we can use it to query the database.
if(preg_match('/index\\.php\\?pageID=([0-9]+)$/', $_SERVER['REQUEST_URI'], $matches))
{
  // You should have a database connection open at this stage
  $result = @mysql_query("SELECT `url` FROM `pages` WHERE `pageID` = {$matches['1']} LIMIT 1");
  if($row = @mysql_fetch_assoc($result))
  {
    // We found the page, so redirect to it
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.example.com/{$row['url']}");
  }
  else
  {
    // No matching page was found
    header("HTTP/1.1 404 Not Found");
    header("Status: 404 Not Found");
    // You could include a custom 404 error page here
    die('404 Page Not Found');
  }
}
else
{
  // Grab the page content from your database
}
?&gt;
Your page content starts here!
</pre>
<p>Once you have modified it to suit your individual setup, placing that code at the top of your script will detect visitors on the old-style URLs and redirect them seamlessly to the correct new URL. Remember that you&#8217;ll need your new URLs rewritten onto the script using Apache&#8217;s mod_rewrite and .htaccess in order to fetch the content.</p>
<h2>Conclusion</h2>
<p>It&#8217;s worth moving from dynamic URLs to static URLs. Using the techniques outlined above you should not be affected by duplicate content and visitors landing on old URLs should be forwarded to your new URLs without having to take any further action.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/introduction-apache-modrewrite/2010/01/" rel="bookmark" class="crp_title">Introduction to Apache mod_rewrite</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/website-redirects-on-lamp-hosting/2009/11/" rel="bookmark" class="crp_title">Website Redirects on LAMP Hosting</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/password-protecting-websites-apache-htaccess/2010/01/" rel="bookmark" class="crp_title">Password Protecting Websites with Apache .htaccess</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/reducing-form-spam-without-captcha/2009/11/" rel="bookmark" class="crp_title">Reducing Form Spam Without the Use of a CAPTCHA</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/content-management-system/2009/10/" rel="bookmark" class="crp_title">What do you want from a Content Management System?</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs&amp;bodytext=It%27s%20worth%20moving%20from%20dynamic%20URLs%20to%20static%20URLs.%20Using%20the%20techniques%20outlined%20here%20you%20should%20not%20be%20affected%20by%20duplicate%20content%20and%20visitors%20landing%20on%20old%20URLs%20should%20be%20forwarded%20to%20your%20new%20URLs%20without%20having%20to%20take%20any%20further%20action." title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs&amp;notes=It%27s%20worth%20moving%20from%20dynamic%20URLs%20to%20static%20URLs.%20Using%20the%20techniques%20outlined%20here%20you%20should%20not%20be%20affected%20by%20duplicate%20content%20and%20visitors%20landing%20on%20old%20URLs%20should%20be%20forwarded%20to%20your%20new%20URLs%20without%20having%20to%20take%20any%20further%20action." title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;t=Redirecting%20to%20Search%20Engine%20Friendly%20URLs" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs&amp;annotation=It%27s%20worth%20moving%20from%20dynamic%20URLs%20to%20static%20URLs.%20Using%20the%20techniques%20outlined%20here%20you%20should%20not%20be%20affected%20by%20duplicate%20content%20and%20visitors%20landing%20on%20old%20URLs%20should%20be%20forwarded%20to%20your%20new%20URLs%20without%20having%20to%20take%20any%20further%20action." title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=It%27s%20worth%20moving%20from%20dynamic%20URLs%20to%20static%20URLs.%20Using%20the%20techniques%20outlined%20here%20you%20should%20not%20be%20affected%20by%20duplicate%20content%20and%20visitors%20landing%20on%20old%20URLs%20should%20be%20forwarded%20to%20your%20new%20URLs%20without%20having%20to%20take%20any%20further%20action." title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;t=Redirecting%20to%20Search%20Engine%20Friendly%20URLs" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs&amp;body=It%27s%20worth%20moving%20from%20dynamic%20URLs%20to%20static%20URLs.%20Using%20the%20techniques%20outlined%20here%20you%20should%20not%20be%20affected%20by%20duplicate%20content%20and%20visitors%20landing%20on%20old%20URLs%20should%20be%20forwarded%20to%20your%20new%20URLs%20without%20having%20to%20take%20any%20further%20action." title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F&amp;title=Redirecting%20to%20Search%20Engine%20Friendly%20URLs" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Redirecting%20to%20Search%20Engine%20Friendly%20URLs%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fredirecting-search-engine-friendly-urls%2F2010%2F02%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/redirecting-search-engine-friendly-urls/2010/02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E-Commerce Web Design 12 Quick Pointers</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/e-commerce-web-design-yorkshire/2010/02/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/e-commerce-web-design-yorkshire/2010/02/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:29:34 +0000</pubDate>
		<dc:creator>Stephen Harvey-Franklin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[E-Commerce Website Design]]></category>
		<category><![CDATA[internet marketing]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=670</guid>
		<description><![CDATA[Here's a quick list of pointers to consider when designing an e-commerce website,.......
... Of course this is not a full checklist, but it is amazing how often websites miss the obvious and focus on themselves or their history.

It is vital to put yourself in the mind of the customer, make it easy ofr them, minimise clicks to buy, engender trust with openness and no surprises and carefully and thoughtfully signpost the site with good navigation. Most of all keep it brief. No one reads long sentences and paragraphs, until after they have made a buying decision or are actively looking for more information
]]></description>
			<content:encoded><![CDATA[<h2>Here&#8217;s a quick list of pointers to consider when designing an e-commerce website</h2>
<p>1-    If it is an<a title="E-Commerce Website Design Huddersfield" href="http://www.wsi-ebizsolutions.biz/ecommerce-web-design_50.html" target="_self"> e-commerce website</a>, make sure it looks like one, display credit card signs, show a basket</p>
<p>2-    Display your main offers and products on the home page, don&#8217;t clutter the home page with your life story or mission statement.</p>
<p>3-    Don&#8217;t waste valuable space and prime search engine optimisation with &#8220;Welcome to Our Site&#8221;</p>
<p>4-    Always have a phone number clearly displayed so that people can contact you, don&#8217;t hide it on the contact page or in teh footer</p>
<p>5-    Ensure that prices and offers and taxes are clear</p>
<p><span id="more-670"></span>6-    Do not require registration to checkout, this is a big turn off</p>
<p>7-    Make Delivery Policy and Charges Transparent</p>
<p>8-    Use Goody Badges e.g. trade associations and secure signs to add comfort to the customer</p>
<p>9-    Do not clutter checkout pages, keep them clear of distractions, too many choices can cause confusion or inertia</p>
<p>10-  Make terms and conditions clear, you have to offer a 7 day money back guarantee by law (some exceptions)</p>
<p>11-   Make sure that it is Search Engine Friendly, teh website can be beautiful, but if you&#8217;re never found, your investment is wasted</p>
<p>12-   Make sure that you have web analytics installed so that you can measure what is happening on site and so that you can measure and improve your marketing campaigns</p>
<p>Of course this is not a full checklist, but it is amazing how often websites miss the obvious and focus on themselves or their history.</p>
<p>It is vital to put yourself in the mind of the customer, make it easy ofr them, minimise clicks to buy, engender trust with openness and no surprises and carefully and thoughtfully signpost the site with good navigation. Most of all keep it brief. No one reads long sentences and paragraphs, until after they have made a buying decision or are actively looking for more information.</p>
<p>Checkout Some Of Our White Paper Resources</p>
<p><strong><a title="WSI White Papers" href="http://www.wsi-ebizsolutions.biz/whitepapers_9.html" target="_self">Downloads Available from our White Paper Resources Page</a></strong></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">The New Ways To Be Found Online</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Landing Pages</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Conversion Architecture</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Email Marketing</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Web Analytics</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Your Guide To Paid Search</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Social Media</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Trends Report 09</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Trends Report 09 &#8211; E-Commerce</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Trends Report 09 &#8211; Internet Usage</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Trends Report 09 &#8211; Social Media</a></p>
<p><a href="http://www.wsi-ebizsolutions.biz/documents-download.php">Make Sure Your Company is Visible on Google with SEO</a></p>
<p>We are a Digital Marketing Agency and Internet Consultancy based in Huddersfield West Yorkshire. We pride ourselves in delivering , top performing e-commerce websites to our customer base around Huddersfield, Leeds and West Yorkshire. Our websites will always be built Search Engine Friendly.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/ecommerce-website-considerations/2010/02/" rel="bookmark" class="crp_title">E-Commerce Website Considerations</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/e-commercewebsites/2010/07/" rel="bookmark" class="crp_title">5 Tips for Improving the e-Commerce Experience</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/internet-marketing-strategy/2009/11/" rel="bookmark" class="crp_title">Internet Marketing Strategy</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/social-media-monitoring-service/2009/11/" rel="bookmark" class="crp_title">Social Media Monitoring Service</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/shopping-online-holidays/2009/12/" rel="bookmark" class="crp_title">Shopping Online for the Holidays</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20&amp;bodytext=Here%27s%20a%20quick%20list%20of%20pointers%20to%20consider%20when%20designing%20an%20e-commerce%20website%2C.......%0D%0A...%20Of%20course%20this%20is%20not%20a%20full%20checklist%2C%20but%20it%20is%20amazing%20how%20often%20websites%20miss%20the%20obvious%20and%20focus%20on%20themselves%20or%20their%20history.%0D%0A%0D%0AIt%20is%20vital%20to%20put%20yourself%20in%20the%20mind%20of%20the%20customer%2C%20make%20it%20easy%20ofr%20them%2C%20minimise%20clicks%20to%20buy%2C%20engender%20trust%20with%20openness%20and%20no%20surprises%20and%20carefully%20and%20thoughtfully%20signpost%20the%20site%20with%20good%20navigation.%20Most%20of%20all%20keep%20it%20brief.%20No%20one%20reads%20long%20sentences%20and%20paragraphs%2C%20until%20after%20they%20have%20made%20a%20buying%20decision%20or%20are%20actively%20looking%20for%20more%20information%0D%0A" title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20&amp;notes=Here%27s%20a%20quick%20list%20of%20pointers%20to%20consider%20when%20designing%20an%20e-commerce%20website%2C.......%0D%0A...%20Of%20course%20this%20is%20not%20a%20full%20checklist%2C%20but%20it%20is%20amazing%20how%20often%20websites%20miss%20the%20obvious%20and%20focus%20on%20themselves%20or%20their%20history.%0D%0A%0D%0AIt%20is%20vital%20to%20put%20yourself%20in%20the%20mind%20of%20the%20customer%2C%20make%20it%20easy%20ofr%20them%2C%20minimise%20clicks%20to%20buy%2C%20engender%20trust%20with%20openness%20and%20no%20surprises%20and%20carefully%20and%20thoughtfully%20signpost%20the%20site%20with%20good%20navigation.%20Most%20of%20all%20keep%20it%20brief.%20No%20one%20reads%20long%20sentences%20and%20paragraphs%2C%20until%20after%20they%20have%20made%20a%20buying%20decision%20or%20are%20actively%20looking%20for%20more%20information%0D%0A" title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;t=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20&amp;annotation=Here%27s%20a%20quick%20list%20of%20pointers%20to%20consider%20when%20designing%20an%20e-commerce%20website%2C.......%0D%0A...%20Of%20course%20this%20is%20not%20a%20full%20checklist%2C%20but%20it%20is%20amazing%20how%20often%20websites%20miss%20the%20obvious%20and%20focus%20on%20themselves%20or%20their%20history.%0D%0A%0D%0AIt%20is%20vital%20to%20put%20yourself%20in%20the%20mind%20of%20the%20customer%2C%20make%20it%20easy%20ofr%20them%2C%20minimise%20clicks%20to%20buy%2C%20engender%20trust%20with%20openness%20and%20no%20surprises%20and%20carefully%20and%20thoughtfully%20signpost%20the%20site%20with%20good%20navigation.%20Most%20of%20all%20keep%20it%20brief.%20No%20one%20reads%20long%20sentences%20and%20paragraphs%2C%20until%20after%20they%20have%20made%20a%20buying%20decision%20or%20are%20actively%20looking%20for%20more%20information%0D%0A" title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=Here%27s%20a%20quick%20list%20of%20pointers%20to%20consider%20when%20designing%20an%20e-commerce%20website%2C.......%0D%0A...%20Of%20course%20this%20is%20not%20a%20full%20checklist%2C%20but%20it%20is%20amazing%20how%20often%20websites%20miss%20the%20obvious%20and%20focus%20on%20themselves%20or%20their%20history.%0D%0A%0D%0AIt%20is%20vital%20to%20put%20yourself%20in%20the%20mind%20of%20the%20customer%2C%20make%20it%20easy%20ofr%20them%2C%20minimise%20clicks%20to%20buy%2C%20engender%20trust%20with%20openness%20and%20no%20surprises%20and%20carefully%20and%20thoughtfully%20signpost%20the%20site%20with%20good%20navigation.%20Most%20of%20all%20keep%20it%20brief.%20No%20one%20reads%20long%20sentences%20and%20paragraphs%2C%20until%20after%20they%20have%20made%20a%20buying%20decision%20or%20are%20actively%20looking%20for%20more%20information%0D%0A" title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;t=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20&amp;body=Here%27s%20a%20quick%20list%20of%20pointers%20to%20consider%20when%20designing%20an%20e-commerce%20website%2C.......%0D%0A...%20Of%20course%20this%20is%20not%20a%20full%20checklist%2C%20but%20it%20is%20amazing%20how%20often%20websites%20miss%20the%20obvious%20and%20focus%20on%20themselves%20or%20their%20history.%0D%0A%0D%0AIt%20is%20vital%20to%20put%20yourself%20in%20the%20mind%20of%20the%20customer%2C%20make%20it%20easy%20ofr%20them%2C%20minimise%20clicks%20to%20buy%2C%20engender%20trust%20with%20openness%20and%20no%20surprises%20and%20carefully%20and%20thoughtfully%20signpost%20the%20site%20with%20good%20navigation.%20Most%20of%20all%20keep%20it%20brief.%20No%20one%20reads%20long%20sentences%20and%20paragraphs%2C%20until%20after%20they%20have%20made%20a%20buying%20decision%20or%20are%20actively%20looking%20for%20more%20information%0D%0A" title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F&amp;title=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=E-Commerce%20Web%20Design%2012%20Quick%20Pointers%20%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fe-commerce-web-design-yorkshire%2F2010%2F02%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/e-commerce-web-design-yorkshire/2010/02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why should I completely replace my website?</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/completely-replace-website/2010/01/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/completely-replace-website/2010/01/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 09:52:50 +0000</pubDate>
		<dc:creator>Chrisi Reid</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[internet marketing]]></category>
		<category><![CDATA[Return On Investment]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=660</guid>
		<description><![CDATA[The real reason it can be difficult to stomach replacing an existing site is psychological - people are hard-wired to do one thing that will cost them money instead of making it for them, even when it comes to websites.]]></description>
			<content:encoded><![CDATA[<p>If  you have a website that was built a few years ago, you might be thinking about updating or replacing it.  Browsers have changed, with the introduction of new options like Google Chrome &#8211; and the coding standards are slowly shifting towards the use of HTML 5 and CSS 3. These things can affect how an older website is shown to your users, and as markets change, it makes sense to review your site and see if it&#8217;s time to replace it. But why is it so difficult for site owners to justify rebuilding a website from the ground up?</p>
<p><span id="more-660"></span></p>
<p>The real reason it can be difficult to stomach replacing an existing site is psychological &#8211; people are hard-wired to do one thing that will <em>cost </em>them money instead of <em>making </em>it for them, even when it comes to websites.</p>
<h2>The Sunk Cost Fallacy</h2>
<p>Websites can be expensive, especially when you consider all of the modern bells and whistles that can be added &#8211; ecommerce, social media marketing widgets, video and so on. A fully featured website is a significant investment for any business. The key to this investment, however, is the return on investment that your website can provide. It&#8217;s there to bring you customers and attract them back for return business.</p>
<p>But when the investment on that website has been made, it is very difficult to take a step back a few years on and say &#8220;This was working for us in the beginning, but business coming from the website has steadily tapered off. This site just isn&#8217;t getting the job done any more &#8211; it&#8217;s time to replace it.&#8221; As people, we are very reluctant to replace something we&#8217;ve invested a great deal of time, money and effort into &#8211; even if keeping it or adding to it is going to cost us even more.</p>
<p>This is what&#8217;s known as the &#8220;sunk cost fallacy&#8221; &#8211; the idea that somehow plugging more money into something that isn&#8217;t doing the job and isn&#8217;t what you want is better than accepting that the original investment&#8217;s useful life has ended and starting with something new. </p>
<h2>My Toaster&#8217;s Broken&#8230;.</h2>
<p>Of course, this idea isn&#8217;t doing you any favours &#8211; if your toaster was no longer working, and it would cost £20 to fix it or £15 to buy a new one with the same features &#8230; surely you&#8217;d buy the new toaster, right?</p>
<p>What if you had a broken toaster, and it would cost £20 to fix it, or £30 to buy a new one &#8211; it&#8217;s more expensive, but it has features you&#8217;d like to have and it comes with a one-year manufacturer&#8217;s warranty? Would you have your older toaster repaired then, or would you get the one that does what you really want?</p>
<p>If you&#8217;d spend less money but get significantly less for it, you&#8217;re falling prey to the sunk cost fallacy&#8230; and people do the same thing with websites. Older site architecture can be more difficult to bolt new features onto, and a fix that sounds cheaper on the surface than replacing the site as a whole can become a much more expensive exercise when adding new features causes problems with older ones.</p>
<h2>Your Aging Website</h2>
<p>Take a step back if you have an older website &#8211; is it still doing the job you need it to do?</p>
<p>If it doesn&#8217;t &#8230; does it make more economic sense to update it &#8211; or replace it?</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/ecommerce-business-news-tv-advertising-campaigns-drive-traffic-online-2/2009/12/" rel="bookmark" class="crp_title">Ecommerce Business News:  TV Advertising Campaigns Drive Traffic Online</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/online-marketing-optimising-christmas-web-design-seo-ppc/2009/11/" rel="bookmark" class="crp_title">Online Marketing &#038; Optimising for Christmas: Web Design, SEO and PPC</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/achieving-search-engine-marketing-mix/2010/06/" rel="bookmark" class="crp_title">Achieving the Best Search Engine Marketing Mix</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/content-management-system/2009/10/" rel="bookmark" class="crp_title">What do you want from a Content Management System?</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/during-times-of-economic-uncertainty-how-important-is-internet-marketing/2009/05/" rel="bookmark" class="crp_title">During times of economic uncertainty how important is internet marketing?</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;title=Why%20should%20I%20completely%20replace%20my%20website%3F&amp;bodytext=The%20real%20reason%20it%20can%20be%20difficult%20to%20stomach%20replacing%20an%20existing%20site%20is%20psychological%20-%20people%20are%20hard-wired%20to%20do%20one%20thing%20that%20will%20cost%20them%20money%20instead%20of%20making%20it%20for%20them%2C%20even%20when%20it%20comes%20to%20websites." title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;title=Why%20should%20I%20completely%20replace%20my%20website%3F&amp;notes=The%20real%20reason%20it%20can%20be%20difficult%20to%20stomach%20replacing%20an%20existing%20site%20is%20psychological%20-%20people%20are%20hard-wired%20to%20do%20one%20thing%20that%20will%20cost%20them%20money%20instead%20of%20making%20it%20for%20them%2C%20even%20when%20it%20comes%20to%20websites." title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;t=Why%20should%20I%20completely%20replace%20my%20website%3F" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;title=Why%20should%20I%20completely%20replace%20my%20website%3F&amp;annotation=The%20real%20reason%20it%20can%20be%20difficult%20to%20stomach%20replacing%20an%20existing%20site%20is%20psychological%20-%20people%20are%20hard-wired%20to%20do%20one%20thing%20that%20will%20cost%20them%20money%20instead%20of%20making%20it%20for%20them%2C%20even%20when%20it%20comes%20to%20websites." title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Why%20should%20I%20completely%20replace%20my%20website%3F&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;title=Why%20should%20I%20completely%20replace%20my%20website%3F&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=The%20real%20reason%20it%20can%20be%20difficult%20to%20stomach%20replacing%20an%20existing%20site%20is%20psychological%20-%20people%20are%20hard-wired%20to%20do%20one%20thing%20that%20will%20cost%20them%20money%20instead%20of%20making%20it%20for%20them%2C%20even%20when%20it%20comes%20to%20websites." title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;t=Why%20should%20I%20completely%20replace%20my%20website%3F" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;title=Why%20should%20I%20completely%20replace%20my%20website%3F&amp;body=The%20real%20reason%20it%20can%20be%20difficult%20to%20stomach%20replacing%20an%20existing%20site%20is%20psychological%20-%20people%20are%20hard-wired%20to%20do%20one%20thing%20that%20will%20cost%20them%20money%20instead%20of%20making%20it%20for%20them%2C%20even%20when%20it%20comes%20to%20websites." title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;title=Why%20should%20I%20completely%20replace%20my%20website%3F" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Why%20should%20I%20completely%20replace%20my%20website%3F&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F&amp;title=Why%20should%20I%20completely%20replace%20my%20website%3F" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Why%20should%20I%20completely%20replace%20my%20website%3F%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fcompletely-replace-website%2F2010%2F01%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/completely-replace-website/2010/01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password Protecting Websites with Apache .htaccess</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/password-protecting-websites-apache-htaccess/2010/01/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/password-protecting-websites-apache-htaccess/2010/01/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 12:03:48 +0000</pubDate>
		<dc:creator>Barnaby Knowles</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=656</guid>
		<description><![CDATA[There are likely to be areas of your website that you don't want others to be able to access, such as admin areas. Or sometimes you might want to do some quick updates to your code without the website being accessible to the public. If you're using the Apache web server the hypertext access (.htaccess) file lets you add password protection in a flash!]]></description>
			<content:encoded><![CDATA[<h2>Keep Out!</h2>
<p>There are likely to be areas of your website that you don&#8217;t want others to be able to access, such as admin areas. Or sometimes you might want to do some quick updates to your code without the website being accessible to the public. If you&#8217;re using the Apache web server the hypertext access (.htaccess) file lets you add password protection in a flash!</p>
<p><span id="more-656"></span></p>
<h2>.htaccess</h2>
<p>Apache has a built-in way of protecting entire directories (and sub-directories) from unauthorised users. Let&#8217;s assume that you are protecting your /admin/ directory.</p>
<p>If you don&#8217;t have an .htaccess file in the admin directory you will need to create one. The .htaccess file then needs just 4 lines of code to turn on password protection:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
AuthType Basic
AuthName "Admin Area"
AuthUserFile /system/path/to/.htpasswd
Require valid-user
</pre>
<h3>AuthType</h3>
<p>The <em>AuthType</em> directive selects that method that is used to authenticate the user. &#8220;Basic&#8221; is the most common method and is fine for what we are trying to accomplish.</p>
<h3>AuthName</h3>
<p>The <em>AuthName</em> directive sets the <em>Realm</em> that will be used during authentication. The <em>Realm</em> has two uses. Firstly, the web browser often presents this information to the user as part of the password dialogue box. Secondly, it is used by the web browser to determine which password to send for a given authenticated area. Once a user has authenticated in one <em>Realm</em>, the web browser will automatically retry the same password for any area on the same server that is marked with the same <em>Realm</em>. This means that a user will not be prompted for a password more than once if multiple restricted areas share the same <em>Realm</em>.</p>
<h3>AuthUserFile</h3>
<p>The <em>AuthUserFile</em> directive sets the path to the password file that stored usernames and encrypted passwords for your users. This is the system absolute path and not the path within your web space.</p>
<h3>Require</h3>
<p>The <em>Require</em> directive provides the authorisation part of the process by specifying the user that is allowed to access this area. You can specify a single user or &#8220;valid-user&#8221; to allow anyone in that is listed in the password file, and who correctly enters their password.</p>
<h2>Set Up A .htpasswd User List</h2>
<p>Once the <em>.htaccess</em> file has been set up, we need to create the <em>.htpasswd</em> file so that Apache knows which users should be granted access to our admin area.</p>
<p>.htpasswd files are text files that list each user and their encrypted password on a new line like so:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
admin:PAzNeZcFJV3Vk
bob:oRCu8rlaPEaTs
frank:1VhSkx7Q37ZYQ
</pre>
<p>(Passwords are encrypted with a one-way algorithm, so you can&#8217;t decrypt the password even if you know the encrypted value.)</p>
<p>Apache comes with a utility that will generate your .htpasswd file and add users with encrypted passwords that you specify. However, we will assume that you don&#8217;t have shell access, which is needed to use Apache&#8217;s <em>htpasswd</em> utility.</p>
<p>An easier way to generate your .htpasswd file is to use one of the many online .htaccess password generators that will pretty much do everything for you.</p>
<p>One such website is Dynamic Drive&#8217;s <a href="http://tools.dynamicdrive.com/password/" target="_blank">.htaccess password generator</a>, which provides the code needed in both your .htaccess and .htpasswd files.</p>
<h2>Turn Password Protection On</h2>
<p>Once you have generated your <em>.htaccess</em> and your <em>.htpasswd</em> files you simply upload them to the directory that you wish to protect. Take care not to overwrite an existing <em>.htaccess</em> file, or you will lose the functionality that it added. If an <em>.htaccess</em> file already exists you should simply add your new code to it.</p>
<h2>Conclusion</h2>
<p>Apache comes with methods of setting up basic authentication in minutes, so you no longer need to worry about unauthorised users accessing parts of your website that you want to keep private!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/introduction-apache-modrewrite/2010/01/" rel="bookmark" class="crp_title">Introduction to Apache mod_rewrite</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/website-redirects-on-lamp-hosting/2009/11/" rel="bookmark" class="crp_title">Website Redirects on LAMP Hosting</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/redirecting-search-engine-friendly-urls/2010/02/" rel="bookmark" class="crp_title">Redirecting to Search Engine Friendly URLs</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/ban-bad-bots-global_asa-classic-asp/2009/10/" rel="bookmark" class="crp_title">Banning Bad Bots Using The global.asa File In Classic ASP</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/choose-web-hosting/2009/11/" rel="bookmark" class="crp_title">How To Choose Your Web Hosting</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess&amp;bodytext=There%20are%20likely%20to%20be%20areas%20of%20your%20website%20that%20you%20don%27t%20want%20others%20to%20be%20able%20to%20access%2C%20such%20as%20admin%20areas.%20Or%20sometimes%20you%20might%20want%20to%20do%20some%20quick%20updates%20to%20your%20code%20without%20the%20website%20being%20accessible%20to%20the%20public.%20If%20you%27re%20using%20the%20Apache%20web%20server%20the%20hypertext%20access%20%28.htaccess%29%20file%20lets%20you%20add%20password%20protection%20in%20a%20flash%21" title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess&amp;notes=There%20are%20likely%20to%20be%20areas%20of%20your%20website%20that%20you%20don%27t%20want%20others%20to%20be%20able%20to%20access%2C%20such%20as%20admin%20areas.%20Or%20sometimes%20you%20might%20want%20to%20do%20some%20quick%20updates%20to%20your%20code%20without%20the%20website%20being%20accessible%20to%20the%20public.%20If%20you%27re%20using%20the%20Apache%20web%20server%20the%20hypertext%20access%20%28.htaccess%29%20file%20lets%20you%20add%20password%20protection%20in%20a%20flash%21" title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;t=Password%20Protecting%20Websites%20with%20Apache%20.htaccess" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess&amp;annotation=There%20are%20likely%20to%20be%20areas%20of%20your%20website%20that%20you%20don%27t%20want%20others%20to%20be%20able%20to%20access%2C%20such%20as%20admin%20areas.%20Or%20sometimes%20you%20might%20want%20to%20do%20some%20quick%20updates%20to%20your%20code%20without%20the%20website%20being%20accessible%20to%20the%20public.%20If%20you%27re%20using%20the%20Apache%20web%20server%20the%20hypertext%20access%20%28.htaccess%29%20file%20lets%20you%20add%20password%20protection%20in%20a%20flash%21" title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=There%20are%20likely%20to%20be%20areas%20of%20your%20website%20that%20you%20don%27t%20want%20others%20to%20be%20able%20to%20access%2C%20such%20as%20admin%20areas.%20Or%20sometimes%20you%20might%20want%20to%20do%20some%20quick%20updates%20to%20your%20code%20without%20the%20website%20being%20accessible%20to%20the%20public.%20If%20you%27re%20using%20the%20Apache%20web%20server%20the%20hypertext%20access%20%28.htaccess%29%20file%20lets%20you%20add%20password%20protection%20in%20a%20flash%21" title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;t=Password%20Protecting%20Websites%20with%20Apache%20.htaccess" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess&amp;body=There%20are%20likely%20to%20be%20areas%20of%20your%20website%20that%20you%20don%27t%20want%20others%20to%20be%20able%20to%20access%2C%20such%20as%20admin%20areas.%20Or%20sometimes%20you%20might%20want%20to%20do%20some%20quick%20updates%20to%20your%20code%20without%20the%20website%20being%20accessible%20to%20the%20public.%20If%20you%27re%20using%20the%20Apache%20web%20server%20the%20hypertext%20access%20%28.htaccess%29%20file%20lets%20you%20add%20password%20protection%20in%20a%20flash%21" title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F&amp;title=Password%20Protecting%20Websites%20with%20Apache%20.htaccess" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Password%20Protecting%20Websites%20with%20Apache%20.htaccess%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fpassword-protecting-websites-apache-htaccess%2F2010%2F01%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/password-protecting-websites-apache-htaccess/2010/01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to Apache mod_rewrite</title>
		<link>http://www.wsi-ebizsolutions.biz/blog/introduction-apache-modrewrite/2010/01/</link>
		<comments>http://www.wsi-ebizsolutions.biz/blog/introduction-apache-modrewrite/2010/01/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 16:54:03 +0000</pubDate>
		<dc:creator>Barnaby Knowles</dc:creator>
				<category><![CDATA[Search Engine Optimisation]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteRule]]></category>

		<guid isPermaLink="false">http://www.wsi-ebizsolutions.biz/blog/?p=640</guid>
		<description><![CDATA[Apache's mod_rewrite module is a powerful rule-based rewriting engine that rewrites requested URLs on the fly, server-side. This is an incredibly useful feature and importantly it allows you to set up redirects and SEO friendly URLs in minutes.]]></description>
			<content:encoded><![CDATA[<h2>What is mod_rewrite?</h2>
<p>Apache&#8217;s <em>mod_rewrite</em> module is a powerful rule-based rewriting engine that rewrites requested URLs on the fly, server-side. This is an incredibly useful feature and importantly it allows you to set up redirects and SEO friendly URLs in minutes.</p>
<p><span id="more-640"></span></p>
<h2>Can I Use mod_rewrite?</h2>
<p>If you&#8217;re using the Apache web server then the chances are that you have the <em>mod_rewrite</em> module available to you, as it&#8217;s enabled by default in most distributions.</p>
<h2>Getting Started with mod_rewrite</h2>
<p>Your rewriting rules will go in an <em>.htaccess</em> file, a hypertext access configuration file. This can be in the root of your website and apply to all lower directories, or you may have <em>.htaccess</em> files within particular directories if the URL rewriting rules will only apply at that location. We&#8217;re going to assume that all of your URL rewriting will be done from one <em>.htaccess</em> file in the root of your website.</p>
<h2>Turn the Rewriting Engine On!</h2>
<p>First we need to tell Apache that it should use the rewriting engine. We do this by adding the following line of text to our <em>.htaccess</em> file above any rewrite rules:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
RewriteEngine On
</pre>
<p>Now we&#8217;re ready to start adding some URL rewriting rules with the <em>RewriteRule</em> directive!</p>
<h2>URL Rewriting Rules</h2>
<p><em>mod_rewrite</em> accepts Perl compatible regular expressions. The most common <em>mod_rewrite</em> directives that you will use are <em>RewriteRule</em> and <em>RewriteCond</em>.</p>
<p>The <em>RewriteRule</em> directive is the part of the code that does the work in defining what will be rewritten. This directive can be used as many times as you want, with each one defining a single rewrite rule. The syntax for <em>RewriteRule</em> is as follows:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
RewriteRule <i>Pattern Substitution</i>
</pre>
<p>The <em>RewriteCond</em> directive can be used alongside the <em>RewriteRule</em> directive to define a condition under which rewriting will take place. For example, you may have set up a rewrite rule but you only want that rule to be applied under certain circumstances. One or more <em>RewriteCond</em> rule conditions can precede a <em>RewriteRule</em> directive. The syntax for <em>RewriteCond</em> is as follows:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
RewriteCond <i>TestString CondPattern</i>
</pre>
<p><i>Pattern</i> and <i>CondPattern</i> are Perl compatible regular expressions, with some useful additions. Patterns can be prefixed with a &#8216;!&#8217; character (exclamation mark) to specify a non-matching pattern. A working knowledge of regular expressions is particularly useful when setting up URL rewriting rules.</p>
<h2>RewriteRule</h2>
<p>A simple example of <em>RewriteRule</em> used on its own without the need for any extra <em>RewriteCond</em> conditions would be rewriting seemingly static product pages onto a dynamic script. Dynamic URLs such as <code>www.example.com/product.php?id=26</code> are not recommended for SEO, and a slightly better (static looking) example would be <code>www.example.com/product-26.htm</code>. This is easy to implement with the following rewriting rule:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
RewriteRule ^product-([0-9]+)\\.htm$ /product.php?id=$1 [L]
</pre>
<p>First let&#8217;s look at the regular expression pattern for the URLs that we&#8217;re matching. The caret symbol (^) means &#8220;starts&#8221;, so URLs must start with the word &#8220;product&#8221; and then an apostrophe (&#8220;-&#8221;).</p>
<p>Using parentheses in <i>Pattern</i> or in one of the <i>CondPatterns</i> creates a back-reference, so that those values can be used in the <i>Substitution</i> and <i>TestString</i> patterns. We want to capture the product ID and pass it to our dynamic script, so the ID part of the URL is enclosed in parentheses.</p>
<p>The use of square brackets indicates a range. In this case we&#8217;re looking for an ID number, so the range of numbers 0-9 are used. We expect 1 or more numbers in the ID number so the plus (&#8220;+&#8221;) symbol directly after the range means &#8220;match 1 or more of this range&#8221;.</p>
<p>We then want our static URL to finish with &#8220;.htm&#8221; in order to look like a standard HTML page. The full stop (&#8220;.&#8221;) character has a special meaning in regular expressions so it has to be escaped with the backslash (&#8220;\\&#8221;) character so that it is treated as a literal full stop and not its special meaning.</p>
<p>The dollar symbol (&#8220;$&#8221;) means &#8220;ends&#8221;.</p>
<p>Taken as a whole our regular expressions means &#8220;match a URL that starts with &#8216;product-&#8217; then has 1 or more numbers 0 to 9 and finally stops after &#8216;.htm&#8217;&#8221;.</p>
<p>Now let&#8217;s look at the substitution string. This is much simpler than the regular expression pattern. We want to rewrite our static URLs into a dynamic script called product.php in the root of the website.</p>
<p>We created a back-reference referring to the product ID in the regular expression and this is added to the URL with $1, referring to the first back-reference created.</p>
<p>The [L] flag specifies that if matched, stop the rewriting process here and don&#8217;t apply any more rewrite rules. This will stop any subsequent rules matching this request and is also better for performance, as no further rules need to be tested by the server before rewriting takes place.</p>
<h2>RewriteCond and RewriteRule</h2>
<p>A simple and common example of using a rewrite condition with a rewrite rule is redirecting canonical URLs. Typically you&#8217;ll want any visitors arriving at <code>http://example.com</code> or <code>http://example.com/whatever/</code> to be redirected to <code>http://www.example.com</code> or <code>http://www.example.com/whatever/</code> (adding the &#8220;www.&#8221; prefix). This avoids any duplicate content issues. This is easy to implement with the following rewrite condition and rewrite rule:</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
RewriteCond %{HTTP_HOST} !^www\\.example\\.com$
RewriteRule ^(.*) http://www.example.com/$1 [L,R=301]
</pre>
<p>This rewrite condition compares the <em>CondPattern</em> to the <em>TestString</em> and if it matches, the RewriteRule that follows will be applied. In this case the <em>TestString</em> is the website host (e.g. <code>example.com</code> or <code>www.example.com</code> etc&#8230;), specified by <em>%{HTTP_HOST}</em>. (Lots of other server variables can also be tested against.)</p>
<p>The <em>CondPattern</em> pattern is another regular expression. As mentioned previously, the &#8220;!&#8221; prefix specifies a non-matching pattern. This is a similar regular expression to our previous example &#8211; it starts with &#8220;www.example.com&#8221; and then ends. Because we&#8217;re looking for a non-matching pattern, this means that any HTTP hosts <b>not</b> matching &#8220;www.example.com&#8221; (e.g. &#8220;example.com&#8221;) will trigger the rewrite rule.</p>
<p>The <em>RewriteRule</em> pattern here is grabbing anything after the domain part of the URL so that it can be added to the end of the correct version of the URL with the &#8220;www.&#8221;.</p>
<p>The pattern starts with a caret, as we have seen previously.</p>
<p>The next part is enclosed in parentheses so that a back-reference will be created and added to the correct URL.</p>
<p>The full stop means &#8220;any character&#8221; and the asterisk (&#8220;*&#8221;) means &#8220;any number of&#8221;. Put together those two special characters mean &#8220;any number of any character&#8221;, which is anything! That will grab any directory / file name specified in the URL after the domain part.</p>
<p>The <em>Substitution</em> is equally as simple as the first example. The new URL will be <code>http://www.example.com/</code> followed by whatever directory / file was identified by the back-reference.</p>
<p>The L flag specifies that this is the last rule, and R=301 specifies that the redirect code should be 301.</p>
<p>This will set up 301 redirects for any URL that doesn&#8217;t contain the &#8220;www.&#8221; prefix and redirect the visitor to the same page on the correct host.</p>
<h2>Putting It All Together</h2>
<p>In a real .htaccess file, the examples above would be put together as follows (in .htaccess files lines beginning with the hash character (&#8220;#&#8221;) are comments and are not parsed):</p>
<pre style="margin: 20px; padding: 10px; background-color: #E4E4E4; border-left: 3px #C0C0C0 solid;">
# Turn on the URL rewrite engine
RewriteEngine On

# Rewrite any non-www requests to the correct www host
RewriteCond %{HTTP_HOST} !^www\\.example\\.com$
RewriteRule ^(.*) http://www.example.com/$1 [L,R=301]

# Rewrite "static" HTML product pages onto the PHP script that processes them
RewriteRule ^product-([0-9]+)\\.htm$ /product.php?id=$1 [L]
</pre>
<h2>Conclusion</h2>
<p>Those are two of the simplest but most useful uses for the Apache <em>mod_rewrite</em> module. As it is such a powerful tool, <em>mod_rewrite</em> can do much more complicated and interesting things, but that&#8217;s beyond the scope of this basic introduction.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.wsi-ebizsolutions.biz/blog/redirecting-search-engine-friendly-urls/2010/02/" rel="bookmark" class="crp_title">Redirecting to Search Engine Friendly URLs</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/website-redirects-on-lamp-hosting/2009/11/" rel="bookmark" class="crp_title">Website Redirects on LAMP Hosting</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/password-protecting-websites-apache-htaccess/2010/01/" rel="bookmark" class="crp_title">Password Protecting Websites with Apache .htaccess</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/special-characters-html-php-htmlspecialchars/2009/12/" rel="bookmark" class="crp_title">Special Characters in HTML with PHP&#8217;s htmlspecialchars() Function</a></li><li><a href="http://www.wsi-ebizsolutions.biz/blog/future-php-php-6/2009/12/" rel="bookmark" class="crp_title">The Future of PHP : A Brief Look at PHP 6</a></li></ul></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;title=Introduction%20to%20Apache%20mod_rewrite&amp;bodytext=Apache%27s%20mod_rewrite%20module%20is%20a%20powerful%20rule-based%20rewriting%20engine%20that%20rewrites%20requested%20URLs%20on%20the%20fly%2C%20server-side.%20This%20is%20an%20incredibly%20useful%20feature%20and%20importantly%20it%20allows%20you%20to%20set%20up%20redirects%20and%20SEO%20friendly%20URLs%20in%20minutes." title="Digg"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F" title="Sphinn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;title=Introduction%20to%20Apache%20mod_rewrite&amp;notes=Apache%27s%20mod_rewrite%20module%20is%20a%20powerful%20rule-based%20rewriting%20engine%20that%20rewrites%20requested%20URLs%20on%20the%20fly%2C%20server-side.%20This%20is%20an%20incredibly%20useful%20feature%20and%20importantly%20it%20allows%20you%20to%20set%20up%20redirects%20and%20SEO%20friendly%20URLs%20in%20minutes." title="del.icio.us"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;t=Introduction%20to%20Apache%20mod_rewrite" title="Facebook"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;title=Introduction%20to%20Apache%20mod_rewrite&amp;annotation=Apache%27s%20mod_rewrite%20module%20is%20a%20powerful%20rule-based%20rewriting%20engine%20that%20rewrites%20requested%20URLs%20on%20the%20fly%2C%20server-side.%20This%20is%20an%20incredibly%20useful%20feature%20and%20importantly%20it%20allows%20you%20to%20set%20up%20redirects%20and%20SEO%20friendly%20URLs%20in%20minutes." title="Google Bookmarks"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Introduction%20to%20Apache%20mod_rewrite&amp;link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F" title="FriendFeed"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;title=Introduction%20to%20Apache%20mod_rewrite&amp;source=WSI+Blog+Website+Development+and+Internet+Marketing+Blog&amp;summary=Apache%27s%20mod_rewrite%20module%20is%20a%20powerful%20rule-based%20rewriting%20engine%20that%20rewrites%20requested%20URLs%20on%20the%20fly%2C%20server-side.%20This%20is%20an%20incredibly%20useful%20feature%20and%20importantly%20it%20allows%20you%20to%20set%20up%20redirects%20and%20SEO%20friendly%20URLs%20in%20minutes." title="LinkedIn"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;t=Introduction%20to%20Apache%20mod_rewrite" title="MySpace"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;title=Introduction%20to%20Apache%20mod_rewrite&amp;body=Apache%27s%20mod_rewrite%20module%20is%20a%20powerful%20rule-based%20rewriting%20engine%20that%20rewrites%20requested%20URLs%20on%20the%20fly%2C%20server-side.%20This%20is%20an%20incredibly%20useful%20feature%20and%20importantly%20it%20allows%20you%20to%20set%20up%20redirects%20and%20SEO%20friendly%20URLs%20in%20minutes." title="Ping.fm"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;title=Introduction%20to%20Apache%20mod_rewrite" title="Reddit"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Introduction%20to%20Apache%20mod_rewrite&amp;url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F" title="Slashdot"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F&amp;title=Introduction%20to%20Apache%20mod_rewrite" title="StumbleUpon"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F" title="Technorati"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Introduction%20to%20Apache%20mod_rewrite%20-%20http%3A%2F%2Fwww.wsi-ebizsolutions.biz%2Fblog%2Fintroduction-apache-modrewrite%2F2010%2F01%2F" title="Twitter"><img src="http://www.wsi-ebizsolutions.biz/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wsi-ebizsolutions.biz/blog/introduction-apache-modrewrite/2010/01/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
