• Client login
  • Work for us

All the latest from the team...

Monday, 11 August 2008

Semantic content: images with alt attributes vs plain text? The CONCLUSION

For any of you who have been tracking our quest to see if semantic markup truly does have an effect on natural search engine rankings we can confirm we now have a pretty concluisve set of results.

We ran three different versions of content: (H1/P are the tags used to mark headers)
  1. "Frank"
    (H1: image with alt and title)
  2. "Fred"
    (H1: as plain text)
  3. "Roger"
    (P: as plain text)
The analysis...
Roger was the clear loser on Google and failed to get indexed after initially ranking quite high (second to Fred for much of the experiment).

Roger was however the first to be indexed by Google, Yahoo AND Altavista. So if it's quick wins you want Roger is your man.

Frank ran a clear second to Fred for much of the experiment (not unsurprisingly and thankfully the suspected result).... HOWEVER... Over time it has proved pretty fairly conclusive that Frank and Fred had NO significant difference in ranking on Google.

In fact 2 of the 5 search engines completely ignored all of our pages so we cannot be entirely conclusive. Ask and Windows Live did not index ANY of the pages at ANY point throughout the 3 month experiment so clearly their algorithms rely more heavily on inlinking or natural spidering - of which none formed a part of our experiment.

The conclusions?
Well to be honest... Pretty unconvincing. It has to be said that at the time of writing (and when we closed the experiment) Frank (H1: image with alt and title) was the ONLY page naturally listed in Google's results.

Roger(P: as plain text) listed consistently best on Yahoo.

Frank & Fred had the most consistent results overall suggesting that, in our opinion, semantic content DOES make a difference. Although we are truly shocked that it didn't appear to make as much difference as we suspected, especially considering accessibility laws and the use of semantic tags to help screen reading browsers to navigate.

Our next experiment will be based around meta information in a quest to see how search engines actually use meta information and it's significance for companies trying to achieve high natural rankings in the major search engines.

So in our first experiment to uncover SEO secrets with "No bullsh*t just hard & fast evidence of what works best" proved pretty inconclusive... Sorry guys! :-)

Caveats to consider...
  1. Each page was given similar content (same volume of keywords completely irrelevant to what the test website was about and each other).
  2. Each page had no in-links from other sources except those that appeared in the Code Required blog (however we cannot account for links to the pages from other blogs etc - at the time of writing we were unaware of any and the pages have been removed from the test site)

Labels: , , , , ,

Thursday, 3 July 2008

What do you mean you can't get me to rank #1??

One question that always comes up when people ask about SEO (search engine optimisation) services is "does that mean I'll rank number one on Google?... But Company X said they'd guarantee they could get me to number 1".

You've all heard it right? Well the guys at Google have further updated the Webmaster Blog post:
"What's an SEO? Does Google recommend working with companies that offer to make my site Google-friendly?"

I really do urge that anyone offering SEO services and equally anyone looking for SEO services should look at this article NOW!

Labels: , , ,

Wednesday, 11 June 2008

Semantic content: images with alt attributes vs plain text? Part 2

OK so interesting results from our little test case... Although it looks like Google is certainly acting as expected for natural rankings with the way we markup content we've had some interesting results from the other guys at Yahoo & Altavista where it looks as though our mate Roger (un-sematic plain text content) is certainly leading the way!!

Page namePosition
GoogleYahooAltavistaAskLive/MSN
Frank
(H1: image with alt and title)
3n/an/an/an/a
Fred
(H1: as plain text)
1n/an/an/an/a
Roger
(P: as plain text)
222n/an/a


I must say - I'm a bit concerned by these results as it certainly doesn't bode well for the way we've been told we "should" code so often!

Watch this space for further updates!! Feel free to drop Jon an email if you want to see more comparisons.

You can see the pages at:
http://www.mycardioworld.com/tests/frank.html
(header as image with alt and title attributes)

http://www.mycardioworld.com/tests/fred.html
(everything as plain text)

and...
http://www.mycardioworld.com/tests/roger.html
("un-semantic" plain text)

Labels: , , , , , , ,

Friday, 30 May 2008

Semantic content: images with alt attributes vs plain text?

One of the big arguments I constantly have about SEO is whether semantic content as images (with appropriate alt text) or simple text values will rank differently.

For example - which is better for SEO?

<h1>header</h1>

Or...

<h1><img src="header.gif" alt="header" /></h1>

...And does the H1 tag actually make a difference?

<p>header</p>

Not surprisingly it's an incredibly difficult subject to find any solution for so here at Code Required we're currently running a simple test to see what happens...

You can see the pages at:
http://www.mycardioworld.com/tests/frank.html
(header as image with alt and title attributes)

http://www.mycardioworld.com/tests/fred.html
(everything as plain text)

and...
http://www.mycardioworld.com/tests/roger.html
("un-semantic" plain text)

We'll be monitoring the situation over the coming weeks on all the major search engines and posting updates here - in the meantime if you would like us to add other versions or have any comments please drop Jon an email.(For example should we do a sIfr version? should we do a version without title attributes on the images? etc).

Page namePosition
GoogleYahooAltavistaAskLive/MSN
Frank
(H1: image with alt and title)
1n/an/an/an/a
Fred
(H1: as plain text)
2n/an/an/an/a
Roger
(P: as plain text)
n/an/an/an/an/a

Labels: , , , , , , ,

Tuesday, 13 May 2008

Social networking for SEO... the next big thing?

We all know the huge benefits of social networking when it comes to SEO - there is no better way to get new visitors than those on recommendations from existing customers... I mean you're hitting your target audience without even trying.

Social Networking and content sharing have rapidly become the de facto standard in marketing on the web well Google might have just taken that to a whole new level with Google Friend Connect.

Still in a preview release (ie. not even beta yet) it's pretty exciting stuff and I strongly suggest you check out Mussie Shore's (he's the project manager) post on the Google Webmaster Central Blog entitled "Becoming Social".

Google Friend Connect let's you interact with users on social networking site such as Facebook and invite them to check out the website, post directly to their diaries etc and invite their friends - potentially increasing your audience virally with minimal effort... According to Mussie Shore you only need to know very little coding to get going in minutes!

Labels: , , , , , ,

Wednesday, 30 April 2008

Google's use of Meta tags... The debate goes on...

So we've all heard how Googlebot no longer uses meta description or meta keyword tags to index your webpages in it's SERPS listings; and how it uses the actual page content to evaluate the "PageRank" etc... Well with that in mind many web developers/agencies/SEO "experts" often neglect to include meta tags in today's market... Well think again!

A recent post on the Offical Google Wemaster Central Blog explains how Google DOES use meta tags (well the meta description tag at least). Now, although this may or may not have an impact (our research shows that it most certainly does have an impact) on your actual positioning as such, it certainly can have a huge effect on your links "clickability".

The post explains how the meta description data is used to support the link so people can determine if it's your content they were actually looking for... Therefore, our research certainly indicates, that as more people visit your site, Google increases it's importance... Thus how you sell your content in the meta description tag must have an impact on your SERPS positioning.

Labels: , , , , , ,

Monday, 31 March 2008

Keywords and copywriting for SEO

I'm often asked to evaluate copy for the web after writing my article on "Writing Effective Website Content for SEO" and one of the key issues that always crops up is - how do I know what keywords to target? I mean how do I actually know what my users are searching for?

Well this is a tough one, no doubt about that, but there are tools to help you out... Such as Google Adword's Keyword Tool which gives you stats on terms used in your site (or on a descriptive term you supply to it). This will enable you to determine what keywords users are searching for; but, more importantly, which keywords are relevant to your site without much competition. Therefore you can really target keywords your competitors might not be using but potential customers are.

Another wonderful site is Word Tracker. They really know their stuff and write great articles to help you with your copywriting - which are provided for free.

The key for me though is what to do before your site goes live...

I'm a strong believer in that fact that good SEO is actually free. Writing good semantic code and filling it with well written copy is going to be much more effective than paying people to advertise your site for you. Interesting content attracts interested users - and those are the ones you want!

A couple of my sneaky little tips that I find really help with SEO are:

Everyone knows the importance of shared/syndicated content these days... With the likes of Digg, and other community sites, sharing content has never been bigger for the SEO fanatic among us but what have they taught us? And why has no-one caught on yet??

Intelligent site searches: let's face it a user comes to your website and can't find what they are looking for... They use the search and (hopefully) they find it. What most people don't do however is actually analyse what people put into their searches. Simply by doing this you can get a sneak preview inside your users' head. For example 100 people searched for "mobile technology"... Great so now I know I need to focus on those keywords more in the content I write and use those keywords in links to those articles... Simple and yet very very effective.

Content tagging & tag clouds: I adore this little classic that came from the (marketing buzzword) Web 2.0 "phenomenon". What better way to get an insight into what people are looking for than community based content tagging? Why oh why is this such a neglected feature in e-commerce solutions I shall never know - I mean WAKE UP users tagging your products with search terms??? What could be better than that!

Labels: , , , , , , , ,

Wednesday, 19 March 2008

ASP.net 2 and the infamous Response.Redirect method

OK any of you working with a CMS system based on ASP.net which utilises the Response.Redirect method to handle links will undoubtedly have come across this issue - those of you using ASP.net in general and considering using Response.Redirect should also read on...

Response.Redirect makes a round trip to the server and returns a 302 redirect in the headers. Now if you're in anyway concered about SEO you'll know that the majority of search engine bots won't follow 302 redirects (temporary redirects).

I actually came across this after monitoring Google on a DotNetNuke project which utitlises the LinkClick method (which pretty much handles all links in the TEXT/HTML module). So I know that any links to LinkClick.aspx?xxxx&yyyyy will return 302 redirects before going onto my real "seo-freindly" url... Which of course is a BIG problem.

Well after badgering around for what seems like weeks (but is probaly only a few minutes) I began to think about the global.asax file and how it handles requests.

I know there is the Application_PreSendRequestHeaders (which is processed just before we bat the response headers back to the client) so this seems like an appropriate place to check and rewrite the headers and this is actually quite a simple piece of code...

Sub Application_PreSendRequestHeaders(ByVal sender As Object, ByVal e As EventArgs)
If Response.StatusCode = 302 Then
Response.StatusCode = 301
End If
End Sub

Obviously you'll want to be specific in your catchment but you get the idea. I tested this with LiveHTTPHeaders and it seems to have the desired affect - a 301 redirect. I'll let you know if Google likes it after Mr. Google-bot has come back to see my client's site. IN the meantime if your desired affect is to redirect to another file on your server I'd suggest you use the Server.transfer() method which doesn't make the round trip to the server.

Also check out Matt Cutts blog article about this very issue

Labels: , , , , , , , ,

Saturday, 1 March 2008

Telling search engines where your sitemap is...

Those of you interested in SEO really need to get to grips with the sitemap:url line in your robots file... The what? I hear you cry... Well let me explain.

For a long time now there has been an accepted protocol for sitemaps that many of the top search engines have adopted (check out: http://www.sitemaps.org/ for more info) but it's always been a bit of a headache going to each of the big search engines and telling them about your sitemap so that robots can index it right?

Well Google introduced the Webmaster Tools dialogue so that you could tell Google where your sitemap was and use it's tools to evaluate any crawl errors (404s etc). Well there is a really really simple way to tell all of the "big four" (namely Microsoft, Yahoo, Google and Ask).

All you need to do is add one line to your robots.txt file and those search engines will find it. So what's the line?

Simply:

sitemap:<url>

Where <url> is the URL of your sitemap file. In our case:

sitemap:http://www.coderequired.com/sitemap.xml

Still not sure? Check out sitemap.org's Informing search engine crawlers article

Labels: , , , , , ,

Tuesday, 12 February 2008

DNN - Returning Page titles in place of Module titles for Search Results

Those of you using DotNetNuke (DNN) as the platform for your site build have probably encountered the problem where that DNN displays the module name in the search results and NOT the page name.

There is a pretty simple fix to this. In SearchResults.ascx.vb (located in admin->search) simply add the public function "FormatTitle" as per below:

Public Function FormatTitle(ByVal TabID As Integer) As String

Dim strURL As String

Dim objTabs As New DotNetNuke.Entities.Tabs.TabController
Dim objTab As DotNetNuke.Entities.Tabs.TabInfo

objTab = objTabs.GetTab(TabID)

strURL = objTab.Title.ToString()
If strURL = "" Then
strURL = "Home"
End If

Return strURL
End Function


This will get the page name from the TabID returned from the stored procedure GetSearchResults.

Next, to display the page name, add the following line to SearchResults.ascx:

<asp:HyperLink id="pageTitle" runat="server" CssClass="SubHead" NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,"TabId"),DataBinder.Eval(Container.DataItem,"Guid")) %>' Text='<%# FormatTitle(DataBinder.Eval(Container.DataItem,"TabId")) %>'></asp:HyperLink>

And you should now see the page name in your results set instead of the module name!

Labels: , , , , ,

Monday, 11 February 2008

Flickering graphics for rollovers

One common thing that crops up with graphical navigation bars is when they flicker whilst an image preloads (or the browser renders the change rather slowly) for example.

There are many traditional ways around this... Javascript preloaders being one example. How about a purely CSS, compliant version? Well here you go...

CSS background-position
Simple right? Well here goes... You need accessible links so you need a text equivalent... You need your links in a list too... OK let's get on with it:

<ul>
<li id="link1"><a href="http://www.google.com">google</a></li>
<li id="link2"><a href="http://www.yahoo.com">yahoo</a></li>
</ul>

That's the xhtml done... No seriously that's it - the rest is pure CSS - No JavaScript I promise!!

Ok so our nav bar is 40px in height.. And each is a graphic with the name of our link on it... When we rollover it displays with the graphics in inverse colours.. Cool?

OK so you need two graphics per link... One in the on state and one in the off state... Right? Wrong.

The way around the flicker is to have the two states on the same graphic and change the background position of the image... That way we have no flicker or preload issues...

ul #link1 a {
background:transparent url(/images/link1.gif) no-repeat scroll left top;
}
ul li a:hover, #main_nav li.selected a {
background-position:0pt -40px !important;
}

It really is that simple... We just move the graphic (background-position) up by the height of our original bar and voila!

Ok but our text still shows OVER the grpahic in our anchor tag? Well seeing as we're all CSS purists let's just move that with CSS...

ul li a {
display:block;
float:left;
height:0px !important;
overflow:hidden;
padding:40px 0pt 0pt;
}

Simple... Really nice, clean, accessible graphical navigation WITHOUT JavaScript.

Code examples written by Dom Smith, one of our coding buddies, from www.webmotivated.com

Labels: , , , , ,

Thursday, 7 February 2008

"I don't care about accessibility"

Time and time again I come across clients saying "I don't care about accessibility just make it fixed sized fonts". You know the ones who don't understand that changing a relative fonts css file actually isn't a five second job? And that there isn't some big magic button you can press?

Well next time they want to break the law, become the first big name to get sued and have their image tarnished by all the hype that will surround them when it happens tell them this...

Good accessible websites can port easily to other devices such as mobiles, PDAs and other platforms due to the way they are coded – opening up a whole new market place for your products.

Coding in web standards, using semantic markup, also has another beneficial side effect – SEO – good semantic code means that search engines can understand your content in much the same way your users will be able to.

If that doesn't get them how about the massive percentage of potential customers they are alienating?

• There are 8.6 million registered disabled people in the UK which amounts to 14% of the population.

• Two million UK residents have a sight problem.

• One in 12 men and one in 200 women - 9% of the UK population - have some form of colour blindness

• 3.4 million people have mobility disabilities preventing them from using keyboards and/or a mouse in a conventional manner.

• Increase potential revenue streams: a seamless experience across different platforms/devices will help you prevent damage to your brand.

• Good usability & accessibility often goes hand in hand with higher organic search rankings.

Any good business person should want to increase their target audience and 14% is quite a hefty percentage to exclude.

Don't alienate potential customers - start to care about accessibility.

Labels: , , , ,

Wednesday, 6 February 2008

Simple IIS 301 redirects

One of the common requests I get is to setup 301 redirects when porting to a new site. There are really simple ways to do this on an Apache based server but for IIS on Microsoft platforms it's not as easy as having a .htaccess file and you need to know a few things about IIS operates in order to do this.

For example if you can redirect a directory on IIS you can do really simply by pointing the directory at a new URL. Simply right-click on the directory in IIS and select properties to be presented with the following screen:



Simply select the "Directory" tab and the "redirect to a url" option then type the url into the "Redirect to:" box. You can even pass over querystring parameters (let's say for tracking or the like) by adding $Q to the end of the URL.

For example:

If the virtual directory that is mapped to the following Web site:

http://www.mydomain.com/products

is configured to be redirected to the following exact URL:

http://www.myNEWdomain.com/products$S$Q

A new request for the following URL:

http://www.mydomain.com/products/File.asp?var1=5&var2=6

Would be redirected automatically to the following URL:

http://www.myNEWdomain.com/products/File.asp?var1=5&var2=6


For more information on what variables you can pass check out the IIS documentation at: IIS Docs

Or give us a shout at Code Required as we'd be only to glad to help!

Also check out our article about porting an ASP (classic) site to ASP.net and how you can setup 301 redirects really easily!

Labels: , , ,

Monday, 4 February 2008

Writing Effective Website Content for SEO

“Think of your visitors”
What are your visitors going to be searching for? Is your site full of industry jargon which they probably won’t use in their search terms? How do users read your website? How often do you really read a webpage? …How often do you “skim-read” until you find the information you’re after? How do search engines read your webpages?

Turning off images and style sheets for your webpage is often a good indication of how effective the page is at conveying the information within it. Remember that search engines can’t read the fancy text, the beautiful images and all those colours.

This document is a guide to what can you do to make your site perform better in the search engines just by changing the way the content is written.
There is also another positive side effect to writing effective content for your website – accessibility. Remember some people can’t see your website (just like the search engines!) so making sure your content is effective will also aid those users’ experience of your website.

It costs nothing to do and is the single most effective way to boost your search engine rankings!

Make good use of page titles & headers
Ensure each of your website’s page has a unique title that describes the page well. The title is not actually shown on the webpage itself but it’s this text that appears in bookmarks, on the menu-bar of your browser and it’s what most search engines use as the title in their listings.

For instance, if your site title is "Dave’s Cars", a visitor may want to bookmark your home page and the page for a red convertible you have on the forecourt. If all of your pages have the title "Dave’s Cars", then a visitor will have trouble finding your site again in their bookmarks. If, on the other hand, your home page has the title "Dave’s Cars” and your page about that classy red convertible on the forecourt has the title "Red Convertible at Dave’s Cars", then visitors can glance at the title to see what it's about and can easily find it in the bookmarks later. Note that “at Dave’s Cars” comes at the end of the sentence… There’s a reason for this but we’ll get onto that later.

Search engines index pages based on the words contained in them, and including descriptive titles helps search engines know what the pages are about. The search engines will often compare your page titles to your page headings… Let’s review those now.
Breaking up text with descriptive headings and sub-headings allows site visitors to easily see what each section of the page is about.

The main heading (the H1 tag) on the page provides a brief overall view of what page is about. The opening paragraph should give a brief conclusion of the page (because you've “front-loaded” the page content… Again hold back we’ll get onto “front-loading”/”front-weighting” your content shortly).

The sub-headings (your H2, H3 etc tags) should group on-page content into logical groups, to allow site visitors to easily access the information that they're after. For example your main heading (H1 tag) may contain “Latest industry news”; your subheadings (H2 tags) may then be “United Kingdom”, “United States” etc if your news happens to be regional. If you wanted to further categorize your content you may add (H3 tags) such as “England”, “Wales” and so on.

Again this will help search engines understand how the content on your page is structured but it also has a positive effect for accessibility (as do most of the techniques in this document) as screen-readers use the headings to create links into sectors of your page so users can jump to relevant information in your page quickly and easily.

Use Bold Text & Italics
Another way to help users locate information quickly and easily is to bolden important words in some paragraphs. When site visitors scan through the screen this text stands out to them, so do make sure the text makes sense out of context.

Use descriptive link text
In the same way that bold text stands out to screen-scanning web users, so does link text. Link text such as ‘click here’ makes no sense whatsoever out of context so is useless to site visitors scanning web pages. To find out the destination of the link, site visitors have to hunt through the text both before and after the link text.

Screen-readers will also show users a list of links in the page… Understandably in this instance “click here”, “click here” and “click here” next to all of your top three news articles suddenly becomes pretty annoying and irrelevant.

Using lists
Using a bulleted or numbered list is a really simple and effective way to convey information. Lists are easier to scan for the user so they can quickly grasp your products key features quickly and easily and therefore ascertain whether or not it is relevant to them.

“Front-weighting” or “Front-loading” your Content
OK I’ve already mentioned this a couple of times but what is it?
Front-loading content means putting the conclusion first, followed by the what, how, where, when and why. The first line of each paragraph should contain the conclusion for that paragraph.

This theory all goes back to how users read your webpages… When you “read” a webpage you tend to scan it for the information you need… You’ll often read the first few words of a paragraph to ascertain what it’s about and then move on. This is why front-loading can be so effective.
Because each paragraph should contain just one idea, concept or theory users can do all this safe in the knowledge that if they jump to the next paragraph they won't be missing any important information.

Front-loading also applies to the entire web page, as well as paragraphs. The opening paragraph on every page should always contain the conclusion of that page. This way, site visitors can instantly gain an understanding of what the page is about and decide whether they want to read the page or not.

Unfortunately many websites don't adhere to this guideline and end up writing page content in a story-format. On each page there's an introduction, middle and conclusion, in that order. Unfortunately, when scanning through web content we don't tend to read all the text nor read all the way to the bottom of the screen. As such, you may easily miss the conclusion if it's left until the end.

Although there is no hard evidence to back up the theory that front-loading content can affect your search engine rankings it is fair to assume that search engines will evaluate the content of your page by first reading the title; then checking the H1 (your main heading) is relevant; then the subheadings; and then the body text to make sure that the page contains relevant content.

Common/ Key Words, Descriptions & Metadata
You may or may not be aware that you can apply “metadata” to your webpages. Metadata is a concept of tagging data - the dictionary definition actually says it’s “data about data”. For example in your local library books might be categorized into sections ie. “Children’s books” or “Biographies” this is metadata.

Webpages can store this information in custom tags that are added to your webpage called “metatags”. This information is not seen by the users when viewing your webpage but some search engines use this additional information to help index your webpages in their databases.

There are two main types of metadata tag that you can add to your document namely “keywords” and “description” – both are pretty descriptive of their use. Generally these tags are written by your webmaster or, more often than not, excluded altogether from a webpage - which can decrease your SEO rankings for some of the search engines.

Therefore including and writing these tags effectively, in the same way you would the rest of the content, is important. Be careful not to duplicate the first paragraph of your webpage in the description metatag and use it as an opportunity to describe your document in another way; where this description needs to sum up the entire page.

Some search engines use the description metatag as the “introduction” text in their listings so make sure it makes sense and presents your webpage in an enticing manner... It’s often the first snippet of information users will read about your webpage!

Using “Keywords” or Common Words
It may sound obvious, but if you want to rank highly in the search engines for a certain set of keywords, but don't use those keywords or phrases on your webpages, then ranking for those phrases will be difficult, if not impossible.

You can add these as a comma separated list in your “keywords” metatag but should also use them throughout your textual content so the search engines can match a users search terms (keywords) to your document.

I cannot emphasise enough the importance of choosing these keywords carefully. Always think of what your users will search for… For example if you were a watch manufacturer and your new product was named “Tickomatic 5000” it’s unlikely users will search for a “Tickomatic 5000” but they may search for: “watch”, “watches”, “timepieces” etc. If you’re struggling to think of keywords a good tip is to use a thesaurus for example http://thesaurus.reference.com

Be careful not to overuse keywords as some search engines will see it as “spamming” and blacklist your webpages from their indexes.

The use of images to convey information
Images on a site can look great - but search engines can't “read” them, and not all visitors can. Make sure your site is accessible and can be understood by visitors viewing your site with images turned off in their browsers, on mobile devices, and with screen readers. If you do that, search engines won't have any trouble. Some things that you can do to ensure this:

• Don't put the bulk of your text in images. Reserve images for graphical elements. If all of the text on your page is in an image, it becomes inaccessible.

• Take advantage of alt tags for your images that enhance the content – it’s a common mis-conception that “all” images should have alt text.

• Make sure that alt text is descriptive and unique. For instance, alt text such as "picture1" or "logo" doesn't provide much information about the image. "Charting the path of stock x" and "Company Y" give more details.

• Don't overload your alt text. Be descriptive, but don't stuff it with extra keywords – this can actually have a negative effect on SEO.

Whilst we’re on the subject…
Google Image Search enables you to opt-in to have your site’s images indexed. This enables Google to use your images in the “Google Image Labeler”, which harnesses the power of the community for adding metadata to your images.

Domain and file naming conventions
It used to be a common misconception, among many search engine optimization consultants, that filenames and domain names didn’t affect search engine ranking as it was pretty easy to name your file “cars-automobiles-motors-car-motorcar-automobile.html”, for example, and therefore spam the search engines with lots of keywords… Will I’m afraid they do have quite a dramatic effect.

You’ve probably seen several URLs with variables passed to them such as:
www.irrelvant-domain-name.com/news.asp?article=1234

Now take away everything you learnt thus far about writing your content.

Let’s say the above link goes to a page about the latest advances in medication for flu. Nothing in the domain name, or file name, tell us anything remotely related to our search terms of “medication for flu”. Now consider:

www.your-medication.com/viruses/flu/news/

Immediately we have three possible keywords in our URL that the search engine can relate our search too.

Try typing “medication for flu” into Google, for example. You’ll notice some of the top results contain keywords (in bold) as a part of the URL in the listings.

Therefore always try to name the files you create appropriately and place them into well-named folders on your web server as a quick and easy boost to your search engine rankings.

Labels: , , , , ,

Tuesday, 15 January 2008

ASP and 30x redirects for SEO

One of the common things I come across when building websites is the lack of understanding for SEO when you are porting to a new site.

One recent site I've just finished meant porting a site from classic ASP 3.0 to ASP.net and how to point redirects to the new pages to maintain the SEO rankings. Well the obvious answer is a 301 redirect. But how?

Well there are many ways on an IIS box but the basic way to point ASP (classic) pages is to have a global.asa AS WELL AS a global.asax. The global.asa will serve ASP (classic) and the global.asax will serve the ASP.net pages... Therefore we can simply put our redirect code into the global.asa and point our .asp files to their new .aspx conterparts...

If Request.ServerVariables("PATH_INFO")= "/default.asp" Then
If Request.ServerVariables("QUERY_STRING")="" Then
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.mydomain.com/"
Else
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.mydomain.com/?" &
Request.ServerVariables("QUERY_STRING")
End If
End if


I've added the check for querystring variables in case you wanted to pass any tracking or like URL variables to your new page but you can customise to suit your needs.

Labels: , , , , ,

RSS feed ATOM feed Add to Technorati Favorites View Jon Harvey's profile on LinkedIn