Redirect all IE versions in Apache 2.4

The following Apache conf (tested in 2.4.x) will redirect all versions of IE to the specified page. It can be used in .htaccess or in Apache’s conf and requires mod_rewrite is enabled.

(To notify rather than redirect, see If you don’t want to host or maintain a notification page, try or; note that both are ad supported.)

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^.*Trident.*$ [NC]
RewriteCond %{REQUEST_URI} !^/ie-unsupported.html.*
RewriteRule .* /ie-unsupported.html [L,R=302]

What are we doing here? Line 1 turns the rewrite engine on so the subsequent rules will be enforced.

RewriteCond %{HTTP_USER_AGENT} ^.*Trident.*$ [NC]

Line 2 looks for the string ‘Trident’ in the requesting browser’s user agent. Trident is the rendering engine IE has used since version 4, so this rule will catch all versions of ie from 4-11 (the final version).

RewriteCond %{REQUEST_URI} !^/ie-unsupported.html.*

Line 3 looks for a file path that does not start with ‘/ie-unsupported.html. This ensures that all URLs are redirected except the page we are redirecting to. Without this rule, IE would be thrown into an infinite loop, redirecting continuously to the advisory page.

If the conditions on line 2 (browser is IE) and line 3 (not already on the page we are redirecting to) then line 4 will enact the rule: redirect the browser to ‘/ie-unsupported.html’

RewriteRule .* /ie-unsupported.html [L,R=302]

Note: if you name your advisory page something other than ‘ie-unsupported.html’ make sure to replace it on both lines 3 and 4, or this could cause an infinite redirect loop.

Redirect all IE versions in Apache 2.4

Fast way to network adapters

Still remember in Win95 when changing an IP or DNS server was as easy as going to the Control Panel, opening the network folder then choosing the adapter? Rember in WinXP when you get there without even leaving the start menu? Driven insane by Win10's constantly changing settings interfaces from every previous OS with zero cohesion? Well now you can get to your beloved adapters quicker with three easy steps:

  1. Win+R (Run)
  2. Type: ncpa.cpl
  3. <ENTER>
Fast way to network adapters

Permanently disable Firefox and Chrome web notifications

Are you horrified that any website would even ask to send notifications to your desktop? Would you like this pop-up to never appear again? Then:

  1. In Firefox, visit the URL about:config and if promted, say you do want to void your warranty
  2. Filter using webno
  3. Double click dom.webnotifications.enabled (changing the value from the default true to false)

Thanks to this guy for the Firefox info.

  1. In Chrome, in the top-right, click the 3 vertical dots (the More menu) and select Settings
  2. At the top, search notifications
  3. Expand Content settings, then Notifications
  4. Toggle Ask before sending to Blocked

Chrome info from the Google Support article.

Permanently disable Firefox and Chrome web notifications

Remove 3D Objects folder from Windows 10

Run the following commands:

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f

Alternatively in Regedit, open the following locations (only the first is needed for 32-bit systems) and delete the key



Remove 3D Objects folder under This PC in Windows 10, The Windows Club

Delete Registry key from command line

Remove 3D Objects folder from Windows 10

One line Debian/Ubuntu upgrade and clean up

The following command:

  • gets the latest update information
  • upgrades all packages (without prompting for confirmation)
  • removes any unneeded install files
  • removes any unnedded packages
  • checks if any services or daemons need to be restarted

Note: the debian-goodies package needs to be installed to use the checkrestart command

apt-get update;apt-get upgrade -y;apt-get autoclean;apt-get autoremove;checkrestart

Linux allows running applications to be updated however they will not start to use the new files until restarted. The checkrestart command (from the Debian package description):

Help to find and restart processes which are using old versions of upgraded files (such as libraries)

One line Debian/Ubuntu upgrade and clean up