center

Centering things in CSS is the poster child of CSS complaining. Why does it have to be so hard? They jeer. I think the issue isn’t that it’s difficult to do, but in that there so many different ways of doing it, depending on the situation, it’s hard to know which to reach for.

So let’s make it a decision tree and hopefully make it easier. Continue reading center

419 HTTP status code

… does not exist
https://nl.wikipedia.org/wiki/Lijst_van_HTTP-statuscodes

However it did take some of my time to figure this one out as the response code was really in my webserver logfiles and as usual… I was not the first to run into this problem, see: https://stackoverflow.com/questions/46266553/why-laravel-api-return-419-status-code-on-post-and-put-method

You get a 419 status code, if an (external) script tries to post to your Laravel application, without the o-so-needed CSRF token.

First option is to change in App\Http\Middleware\VerifyCsrfToken:
protected $except = [ ‘/*’, ];
(or maybe something more specific and a little more safe, like ‘/myapiurl/*’,)

Second option is to put the route in api.php instead of web.php, but that implies prefixing all your routes with /api/

… your choice!

How Do I Flush My DNS Cache on Windows?


The following guide will walk you through flushing your DNS Cache. Every time you venture onto the Internet, DNS resolutions are being made and your computer stores many of them. Caching these resolutions can speed up your web activities because your computer no longer has to ask another computer where something is located.

Eventually, there will come a time when a bad entry is stored. There are generally two ways to remove these entries. First is to allow 24 hours to pass. During this time your computer will seek out and make the necessary DNS updates. Second is to flush your DNS cache.

  1. The first step to flushing your DNS is to open your “Windows Command” prompt.
  2. Click “Start” and type the word “Command” in the Start search field.
  3. Right-click the command prompt icon and select the option to “Run as Administrator”.
  4. In the open prompt, type “ipconfig /flushdns” (without the quotes).
    You should receive a message of your success as confirmation when the cache is cleared.

Flushing the cache removes all the information stored within the cache, forcing the computer to find new DNS information.

Google uw website

Complete 120 punten waarop Google uw website beoordeelt in 2017

bron: https://webstick.nl/seo-blog18-120-punten-waarop-google-sites-beoordeelt

Dit artikel is dus een voorbeeld van “hoe moet het niet” … een rechtstreekse knip-plak actie van een andere website. Gewoon gedaan voor mijn eigen archief, voor het geval de orginele tekst weer eens wordt verwijderd. Continue reading Google uw website

web.config rules for everything

new knowledge, original post can be found here.

10 URL Rewriting Tips and Tricks

This post describes some of the tips and tricks that one may find useful when solving URL-based problems for their web server or web site. Each tip/trick has a description of a problem and then an example of how it can be solved with IIS 7 URL Rewrite Module.

  1. Add or Remove Trailing Slash
  2. Enforce Lower Case URLs
  3. Canonical Hostnames
  4. Redirect to HTTPS
  5. Return HTTP 503 Status Code in Response
  6. Prevent Image Hotlinking
  7. Reverse Proxy to Another Site/Server
  8. Preserve Protocol Prefix in Reverse Proxy
  9. Rewrite/Redirect Based on Query String Parameter
  10. Avoid Rewriting of Requests for ASP.NET Web Resources

Continue reading web.config rules for everything