Working on a site which asks users to enter a “place name, area or postcode” to search by, niggly problem where searching for postcode “OX2” for example, not only returned properties in OX2, but also in OX29. Continue reading “Using RegEx To Determine If Search Query Is A Postcode/Partial Postcode”
I don’t think i’ve ever had to hide an entire site from search engines before, so today I learnt something new that saves a lot of time.
Rather than writing a complex robots.txt file you simply add the following line of code to your page <head>
<meta name="robots" content="noindex">