Redirect everyone except my IP

Wojtek on Apache, redirect · · Comments · 1 min read

When you want to patch your site or just make some amends it's a good idea to close the site so that your visitors donโ€™t see the mess you make while patching ๐Ÿ™‚ You can easily do it using .htaccess file. I assume you know basics of Apache mod_rewrite so Iโ€™m not gonna explain each line. Options +FollowSymLinks... Read more »

This page contains both secure and nonsecure items

Wojtek on https · · Comments · 1 min read

Quite often when you create a secure page all you have to do is change http to https and you see your URL in green in firefox. Sometimes it happens that after you put https your URL turns red instead of green and in IE when viewing this page you get this annoying popup saying that this page contains both... Read more »

Simple JavaScript popup window

Wojtek on JavaScript · · Comments · 1 min read

Over the years I used a lot of JavaScript functions to open PopUp windows. Some time ago I wrote this simple function and I use it everywhere where I need to open a new window. Add the following to your JavaScript file or embed it in the <script type="text/javascript"></script> tag somewhere... Read more »