DEANO.ME

Apache & htaccess

 

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

 

The other day a colleague was having a very puzzling problem with PHP POST Variables, he was posting an array of values from a large form but some of the values were missing from the $_POST variable. After looking through his code a couple of times we came to the conclusion that the code was […]

 

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

+1
Tweet
Share
Share
Stumble
Pin
Email
Shares 0