301-redirect

Ja, http://blog.mybrain.nl/ is verhuisd naar https://markohoven.com/
Hoe doe je dit nu op een correcte manier?
Binnen IIS kan dit met web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <httpRedirect enabled="true" destination="https://markohoven.com" httpResponseStatus="Permanent" />
  <defaultDocument enabled="true">
   <files>
    <clear />
     <add value="index.php" />
     <add value="index.htm" />
     <add value="index.html" />
     <add value="default.asp" />
     <add value="default.aspx" />
     <add value="default.htm" />
     <add value="default.html" />
    </files>
   </defaultDocument>
   <httpErrors errorMode="Custom">
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />
   </httpErrors>
  </system.webServer>
</configuration>

Een andere mogelijkheid is in code… Continue reading 301-redirect

Fixing DNS_PROBE_FINISHED_NXDOMAIN Error

Sometimes when using Google Chrome, you get an error DNS_PROBE_FINISHED_NXDOMAIN instead of the website. Nothing seems wrong with the internet connection, the website might even work in other browsers. Below are two methods that might help you to get rid of this error. Follow the below mentioned steps and you will be good to go:  Continue reading Fixing DNS_PROBE_FINISHED_NXDOMAIN Error

Loading speed vs code readability

ctrl-ZVXAs a developer I like structured code. The browser however could not care less about the right amount of tabs and spacing; it just need to get the code, with as little data-traffic as possible.

So, what do I do? When speed is really important, I create my stylesheets and javascripts as I normally do, but then also convert these into a “.min’ version – minified, and refer to those from the html source code.

To get this done Continue reading Loading speed vs code readability