• Skip to main content
  • Skip to footer
  • Home
  • About
    • MyPE Copyright Terms
    • Authors
    • Deals
  • Info
    • Accommodation
    • Classified Adverts
    • Directory
    • Essential PE Numbers
    • Flight Schedules
    • Forex Converter
    • PE’s Online Radio Stations
      • Algoa FM
      • Bay FM
      • iFM
      • Kingfisher FM
      • MannMade Radio
      • Madibaz Radio
      • Umhlobo Wenene
    • Podcasts
    • Shipping
    • Street Map
    • Tides
    • Ward Details
    • Ward News
    • Weather
  • Contact
    • Advertising on MyPE
  • Submit
    • Blogger
    • 5 Quick PE Questions
    • Entertainment
    • Events
      • Add your Port Elizabeth event
    • Letter to the Editor
    • Lost and Found
    • Movers and Shakers
    • News Article
    • PE Videos
    • Photographs
    • Recipes
    • Traffic Hooligan
    • Say NO
  • Dam Levels
  • Advertorial
  • Business
  • NMBRA
  • NMB Rates
MyPE

MyPE

Community Business Directory, Event Listings, News and Views from Gqeberha, Nelson Mandela Bay

A Little Canonical Lesson for the Daily Dispatch

16 March 2011 By Alan Straton

I have just been sent a link by a concerned internet surfer to the Safe Browsing Diagnostic page for www.dispatch.co.za.

The problem according to Google with the www.dispatch.co.za site is:

What is the current listing status for www.dispatch.co.za?

Site is listed as suspicious – visiting this website may harm your computer.
Part of this site was listed for suspicious activity 6 time(s) over the past 90 days.

What happened when Google visited this site?

Of the 179 pages that we tested on the site over the past 90 days, 9 page(s) resulted in malicious software being downloaded and installed without user consent. The last time that Google visited this site was on 2011-03-15, and the last time that suspicious content was found on this site was on 2011-03-15.
Malicious software includes 9 scripting exploit(s), 7 trojan(s), 1 exploit(s). Successful infection resulted in an average of 13 new process(es) on the target machine.
Malicious software is hosted on 6 domain(s), including scpp.co.cc/, timlotion.co.cc/, onlineinnovations.com/.
2 domain(s) appear to be functioning as intermediaries for distributing malware to visitors of this site, including onlineinnovations.com/, leeulekker.com/.
This site was hosted on 1 network(s) including AS21844 (THEPLANET).

Has this site acted as an intermediary resulting in further distribution of malware?

Over the past 90 days, www.dispatch.co.za did not appear to function as an intermediary for the infection of any sites.

Has this site hosted malware?

No, this site has not hosted malicious software over the past 90 days.

How did this happen?

In some cases, third parties can add malicious code to legitimate sites, which would cause us to show the warning message.

Okay – No big deal here. This has happened to me before and with the help of a decent server tech the malicious code can be quickly found and removed. Then it is off to Google to scan the site again and the warning is removed chop chop.

BUT, and here is my BIG BUT. In the course of my having a look at the site I came across a canonical mistake that is further hurting the Dispatch web site. Have you ever wondered how it is possible to get to the same site if you type in the URL with or without the www in front?

In the case of the www.dispatch.co.za web site they are using a server redirect, so whenever someone types in dispatch.co.za (without the www) the browser is sent to the www.dispatch.co.za site, EXCEPT, the person who set up the redirect typed in www.dispatch.c.za and not www.dispatch.co.za. Try it yourself before the mistake is fixed: http://dispatch.co.za.

And if you want to show your web master / hoster just how bright you are suggest one or more of these ways to fix Canonical issues:

  • Canonicalize the domain (e.g. redirect non www and IP address to www)
  • Canonicalize index pages (redirect “/index.html” to “/”)
  • Remove multiple slashes in the URL
  • Remove spurious query strings
  • Fix up common typos in type-in URLs
  • Fix up invalid inbound links caused by bad HTML mark-up
  • Fix up URLs resulting from bad copy and pastes
  • Fix up outdated or otherwise incorrect query strings
  • Suppress the fix up redirect if the resulting URL does not resolve to an existing file
  • Suppress the fix up if the link is on my own site
  • Suppress the fix up if the remote user is me or a site tester
  • Avoid recursion in mod_rewrite running in a per-directory .htaccess context
  • Avoid the nasty mod_rewrite bug in Apache 1.3.x
  • Do all of the above using a single ‘301 Moved Permanently’ redirect

 

The following two tabs change content below.
  • Bio
  • Latest Posts
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Flickr profileMy Pinterest profile

Alan Straton

Chief Cook, Bottle Washer and Broom Mechanic at MyPE
Passionate about Port Elizabeth and definitely NOT packing for Perth. Alan's ethos is epitomised in the words of Nelson Mandela; "I have fought against white domination and I have fought against black domination. I have cherished the idea of a democratic and free society. If need be, it is an ideal for which I am prepared to die." See more articles by Alan.
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Flickr profileMy Pinterest profile

Latest posts by Alan Straton (see all)

  • Early Signs of HIV And Why Testing Matters - 27 November 2026
  • Just Some Tools Packs Six Clamps and a Pressure Card for Highveld Glue-Ups - 26 November 2026
  • Phase Converters Sets Out How to Size a Rotary Unit From the Motor Plate - 26 November 2026
  • Set-IP Puts Trade Mark Renewal Dates on a One-Page Wall Sheet for Makers - 26 November 2026
  • Colour Planet Adds Catalogue Printing to Its Pinetown Litho Line - 26 November 2026

Filed Under: Editorial Tagged With: canonical, daily dispatch

Reader Interactions

Comments

  1. Edward Labuschagne says

    16 March 2011 at 10:30 am

    Must admit I had a couple of Ï did not expect that”moments while reading this. But yes canonicalisation is important otherwise there there are too many different variations of url’s floating around and even though Google is pretty good at picking the right one it can at times pick the wrong one.

  2. Björn Potgieter says

    16 March 2011 at 10:35 am

    ah, had this pain the other day with a site i was hosting, but did not have control over the domain and dns. whenever you went to the url without the www part, a splash page for the domain owners came up. eventually got them to put a redirect up to point to the www. (after about 6 months)

  3. Edward Labuschagne says

    16 March 2011 at 11:15 am

    hmmm…dispatch.co.za –> dispatch.c.za. I guess I could say “we all have our moments” But in my experience that type of…well…let’s call it a typo normally only happens when you have had to much of a % type beverage or you have not slept in 3 days, I mean surely the person who set up the redirect should have tested to see if it works properly?

Footer

RSS Straton Electrical

RSS MyPE Business News

  • NMBBC On Budget 2025
  • Leading Business Minds Set to Headline Chambers Annual General Meeting
  • Bay of Opportunity Portal
  • Bay of Opportunity Ambassadors Programme to Promote the Bay and Attract Investment
  • 6 Decades of Trucking
  • Thermal Camera Installed at Redhouse Substation
  • Finalist in the 2025 South African Car of the Year
  • Joining hands to create a lasting impact to St Albans Primary School

RSS MyPR Press Releases

How you may use MyPE content © 2026 MyPE · Gqeberha, South Africa | Privacy Policy | MyPE Ads and Media Kit