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. […]

 

Something that has been racking my brain this morning… I recently moved all the sites I host (including my own) to a new VPS server, everything went far smoother than I could have imagined and I thought I had escaped the pains that you could expect from a server transfer, such as broken scripts due […]

 

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 […]

 

Hey everyone ,So recently I noticed that Google had indexed my whole Development server! To combat this I immediately inserted a robots file into the root of my Apache server so that Google would stop indexing everything. After a month it was still listing pages for my development server but was no longer updating (so […]

+1
Tweet
Share1
Share
Stumble
Pin
Email
Shares 1