Tim

Footprints in the snow of a warped mind

Friday, June 16, 2006

Where to find me

Flickr Icon  Twitter Icon  Linked In Icon  FaceBook Icon  Windows Live Alerts Butterfly  RSS 2.0 

Tag Cloud

AJAX (4) ASP (6) ASP.Net (52) Error Reporting (4) Web Service (2) WSDL (1) Atlas (2) Business (76) Business Start-up Advice (25) Client (14) Expanding Your Business (17) C# (17) Canoeing (4) Canoe Racing (5) Cheshire Ring Race (5) Racing (2) Training (4) CIMA (1) Cisco (1) 7970G (1) CSS (3) dasBlog (4) DDD (1) Design (9) Icons (1) Development (13) eCommerce (1) General (39) Christmas (6) Fun and Games (11) Internet (22) Random (46) RX-8 (8) Home Cinema (2) Hosting (2) IIS (10) iPhone (1) JavaScript (4) jQuery (1) Marketing (5) Email (1) Multipack (1) Networking (2) Nintendo (1) OS Commerce (1) Photography (1) PHP (1) PowerShell (2) Press Release (1) Productivity (2) Security (2) SEO (5) Server Maintenance (4) Server Management (9) Social Media (1) Social Networking (2) Experiment (1) Software (9) Office (5) Visual Studio (12) Windows (4) Vista (1) SQL (1) SQL Server (13) Stored Procedure (1) Testing (1) The Site Doctor (106) Turnover Challenge (1) Twitter (2) uCommerce (1) Umbraco (18) 2009 (1) Web Development (57) WebDD (33) Wii (1)

Blog Archive

Search

<June 2006>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

Recent Comments

Blog Archive

Various Links

Blogs I Read

[Feed] Google Blog
Official Google Webmaster Central Blog
[Feed] Matt Cutts
Gadgets, Google, and SEO
[Feed] Ol' Deano's Blog
My mate Dean's blog on my space, equally as random as mine but not off on as much of a tangent!
[Feed] Sam's Blog
Sam is one of my younger brothers studying Product Design and Manufacture at Loughborough, this is his blog :) Enjoy!

Recent Tracks

last.fm - The Social Music Revolution

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

newtelligence dasBlog 2.2.8279.16125

Send mail to the author(s) Email Me (Tim Gaunt)

© 2010 Tim Gaunt.

Sign In

    # Friday, June 16, 2006

    Custom 404 Error Pages

    Friday, June 16, 2006 9:48:54 PM (GMT Daylight Time, UTC+01:00)

    I made an interesting discovery this morning. A few weeks ago I was doing a little SEO on The Wargame Company (Devon) and thought I would look into utilising Google SiteMaps. After creating the XML file with the correct format it's just a matter of having Google approve it. They do this by accessing a random page i.e. www.domain.com/GooglesWonderfulPageddmmyyyyhhmmssmmm (which clearly should return a 404) and check the response code -I guess to ensure that you're not trying to spoof the pages in some way.

    "What's the problem? I've got custom 404 pages" I hear you cry! Well, if like us you've written some fancy page to handle the error and email you/log it to a database, it turns out that you're not returning a 404 error at all!

    What I discovered was that if you configure IIS to handle 404 error pages with a URL you're actually returning a response code of 200. After a little thinking, the only conclusion we could come to was that when setting it as a URL in IIS you're actually redirecting the request which is either a 301 or perhaps a 307 (see http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html for more information on response codes) and then the final page the user hit's returns a 200 (Response Status "OK") rather than the desired 404 -clearly not what we want!

    After a little more investigation we also found that the same thing happened when using ASP.Net's built in handlers and the same thing happens, the only time it doesn't is when you handle the 404 with a File in IIS rather than a URL.

    "What can I do about it?" Well that's simple, if you're going to use a URL to handle your 404 errors, make sure you change the Response Status Codes to the correct code, i.e. 404, this is pretty simple to do:

    ASP.Net 2.0: Page.Response.StatusCode = 404;

    ASP.Net 1.1 (I think): Response.StatusCode = 404;

    ASP: Response.Status = "404 You are Unauthorized"

    I hope that helps someone out there!

    Tim

    Update: I've just run fiddler on The Wargame Company (Devon) and and can confirm you get a Response Status Code of 301 before the 200.

    Custom 404 Error Pages
    Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [0]  Trackback LinkTrackback
    CategoriesTags: ASP | ASP.Net | IIS | SEO
    # Friday, June 09, 2006

    New TSD Design

    Friday, June 09, 2006 5:08:07 PM (GMT Daylight Time, UTC+01:00)

    Ok, The Site Doctor has moved on a fair amount since I started it up, we started off with a somewhat techy design (Version 1) which at the time I loved but as time went on felt it was somewhat cheesy so it was replaced with Version 2 in September 2004 and this has remained the face of The Site Doctor ever since. It’s a nice site but as far as the code quality is concerned it’s terrible, not to mention to SEO issues (to say the least!)


    Site Design 1


    Site Design 2


    Site Design 3?

    In the past both designs were tabular based and didn’t care too much for accessibility standards which are now at the fore-front of our minds so we felt it was once again time for a change, but what to do? Although I dabble and with enough time I can come up with some snazzy designs, this time I felt it was necessary to have someone “in the know” to put something together for us.

    Mike from Butterfly Media stepped up to the mark with some great concepts, the current design he’s finalising for us is based on the following concepts (click the image to see the next example image): The New TSD design

    Watch this space for an update in the next few weeks. I hope to have the final TSD design live shortly after I return from holiday along with a few other, well, niceties :-)

    I'd be interested to hear other people's thoughts on the new design

    New TSD Design
    Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [2]  Trackback LinkTrackback
    CategoriesTags: ASP.Net | SEO | The Site Doctor
    # Saturday, May 27, 2006

    THE RX-8!

    Saturday, May 27, 2006 6:57:22 PM (GMT Daylight Time, UTC+01:00)

    Ok, for those of you who know me you'll know that when I first setup The Site Doctor I had a few goals, one of the main goals was to get a Mazda RX-8, well it's finally happened!

    A little background/history:

    When I first moved upto the West Midlands I started working at the University Hospital of Birmingham (UHB) as the Theatre Systems information manager (or something like that). Just before I left, I was leaving work with a friend (and colleague) Stuart Day when we walk past a car that had the most unbelievable presence, it looked like it was growling, coiled -ready to pounce. It was fantastic. With no idea of what it was or how much it would cost I said that it was going onto my list of goals.

    A few days later we confirmed that it was a new Coupe from Mazda called the RX-8 and so the obsession began. It's been less than two years (only just!) but this weekend I went and ordered it and for those of you who still don't beleive me, I've scanned in the receipt (with my name on it ;-))

    THE RX-8!
    Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [0]  Trackback LinkTrackback
    CategoriesTags: RX-8
    # Friday, May 19, 2006

    Thailand here we come!

    Friday, May 19, 2006 9:18:48 PM (GMT Daylight Time, UTC+01:00)

    So today we booked our first real holiday in about 3 years. We had planned to pop over to Cuba for a couple of weeks for my birthday as it's somewhere that caught Stacey's eye a while ago. The problem is, in Cuba July is hurricane season so when we told the travel agent that we were thinking of Cuba her face was comical. Straight away -without even letting us explain why she was advising against it and asking to know where else we'd been thinking of. We mentioned Thailand and although it's the rainy season in July she assured us that it would be far better than Cuba for a chill-out holiday.

    After what seemed like an age of looking for a suitable deal on hotel, flights and everything else we managed to find a good deal and so we're off to Thailand on July 8th. I'm really looking forward to it even if I am muttering about the RX-8 more. We're flying over to Bangkok on the 8th and driving straight to Hua Hin where we're staying for 10days in the Hilton. Then we're going back to Bangkok for 3 days before returning to the UK on Friday 21st.

    Photos of the hotel in Hua Hin can be viewed at: the Hilton Website or Marriott Bangkok Website.

    Thailand here we come!
    Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [0]  Trackback LinkTrackback
    CategoriesTags: General