Website Designers and Webmasters

Dedicated to all the tasks Webmasters, Website Developers and Website Designers find themselves facing.

By: Ashton Sanders

XO Hosting Review

Sep 23 2009

I’ve been fortunate to work with John Klein and some of the ladies over at KMP Advertising to help them create their new website. They created a beautiful website that I was proud to develop for them.

I built the website with a simple php include template and basic htaccess rewrite for the client pages.

XO Hosting meets Ashton Sanders

We had been planning on switching hosting accounts to my server, but when XO Hosting (there previous hosting provider) promised that it would destroy the email setup, we decided to keep it there. No problem. How bad could it be? If nothing else I will get to write a lengthy XO Hosting Review…

Last night, I started transferring the new website files to the XO Hosting server. I went to test one of the simplest pages on the site, and got an error that said:Â “CGI Scripting not allowed on this server.” Well that stinks. I waited till this morning so I could contact their technical support.

Thankfully, turning CGI Scripting (and PHP) was easy enough to do. Unfortunately, I hadn’t even gotten started on the problems with XO Hosting. Continue Reading…

By: Ashton Sanders

Redirecting Page Extensions with htaccess

Jun 14 2009

Filed under: htaccess,PHP,SEO

If you are not familiar with htaccess, you are missing out. It is one of the greatest things about linux/php hosting. One little file that gives you a wide range of control. Here is one of the most useful parts of htaccess:

Redirecting Many Pages From .html to .php (or “/”) at Once

Today, I am finishing converting a static, HTML website to WordPress. So all 58 pages that used to be /page.html are now /page/ and it would be a pain to go through all of the .html pages and force redirects to their new page. I found this page on Web Weaver that explains this well:

Changed file extension?

This example is perfect if you’ve decided to switch to .php from .html pages. It will look for any .html page and redirect it to .php (ie and redirect it to Now, be careful with this, it does mean any html page. I did this on one of my sites and had totally forgotten I had an iframe with .html content on some pages… I didn’t notice for weeks that it was broken :S.
So learn from my mistake 😉 check, double check, then check again.

RedirectMatch 301 (.*)\.html$$1.php

In my case, I put most of the pages into a subfolder (and without .php) so my htaccess redirect looks like this (example website for placeholder):

RedirectMatch 301 (.*)\.html$$1/

In this example, the $1 get’s replaced with everything from the (.*) which is everything after the domain name and before the .html.

Ashton Sanders

By: Ashton Sanders

Securing a Folder

Oct 10 2007

Filed under: htaccess

Making a folder secure on your website may seem like a difficult job. Thanks to Phoenix Development, there is a step by step process that will teach you how to make any folder secure.

I found this great blog post about Adding Password Protection to your Website that is very easy to understand, and will help you to easily use .htaccess to secure a folder on your website.

-Keep it secure,
-Ashton Sanders

By: Ashton Sanders

Plesk .htaccess Notes

Aug 8 2007

Filed under: htaccess

WiaF MascotI’ve recently been transferring a website to a Linux Plesk Server. I’ve run into a couple problems, and I’ll be adding notes here on my blog.

.htaccess Notes:

If you have a line of “options” (ie. Options Indexes FollowSymLinks Includes), you should separate each option out into it’s own line. The .htaccess line should look like this:

Options +Indexes
Options +FollowSymLinks
Options +Includes

-Ashton Sanders

By: Ashton Sanders

.htaccess – PHP on HTML/HTM Pages

May 29 2007

Filed under: htaccess,HTML,PHP

I went into more detail about what the different processes are of adding php to a website programmed with *.html pages in this earlier htaccess post.

Here are a few more .htaccess lines that will enable php on your server. (Different servers require a different line of code.)

AddType application/x-httpd-php .html .htm

AddType x-mapp-php5 .html .htm

AddHandler application/x-php .html .htm

AddHandler x-httpd-php5 .html .htm

AddHandler x-httpd-php .html .htm

Check out my other .htaccess posts.

-Ashton Sanders

Older Posts »

Where Am I?

You have found the semi-coherent ramblings of Ashton Sanders: a website designer, developer and webmaster. This is primarily Ashton's place to save notes about techniques and things that he learns in his never-ending conquest of the internet. Hopefully it's coherent enough to be useful to you too.


Enter your email to get automatic emails whenever Ashton posts on the blog.


Tags and Categories


Blog Roll