DEANO.ME

htaccess

 

Recently I was trying to fix a website that needed to run PHP script from within HTML files, the site originally used a htaccess rule to set up html files so they were executed just like php files but this had stopped working. The problem is, there are many different methods for defining file extensions […]

 

UPDATED 03/01/2017 – Fixed a bug in the code, sorry! Some people still prefer to use www in their websites, however using www. is no longer a standard for websites and was invented when the internet first started as an indicator that you was requesting a website, which was especially useful as most of the […]

 

Allot of outdated websites still use www. in their urls, however did you know this is very outdated behaviour invented way back when the internet first started? The whole idea of using www. was invented so that anyone seeing a URL would instantly know it was a URL as www stands for World Wide Web. […]

 

If you have your own development server like us that are accessible across the internet using public IP or a domain name you may be having problems where somehow Google and other search engines find your development server and starts indexing it! This is very frustrating when you actually do not want projects being leaked […]

 

I came across a very weird and extremely annoying “feature” of Apache recently when configuring a clients web server. When linking to a file on the server, you could directly link to a file without specifying it’s file extension. so linking to: http://mysite/favicon Would link directly to: http://mysite/favicon.ico I can completely understand how useful this […]

 

This is something that has been irritating me for a while now, I like to remove and force removal of the www. in front of all websites that I own and host. However the only examples I have ever found online use the domain name in the re-write rule. Which means that every .htaccess file […]