Category Archives: web design

Combining free blog hosting with your own domain name.

Hosting a site on a free service like WordPress.com has some advantages. For one thing, they really keep the blogging software up to date, with constant improvements, new widgets, etc. You never have to lift a finger to upgrade. The problem is that you are limited as to disk space, bandwidth, etc. This is why this blog is not run on WordPress.com – I wanted to go beyond the services that WordPress provides for free. I have a rented server account with Dreamhost.com, on which I can host as many domain names as I need, with tons of bandwidth and storage.

I recently started a new skateboarding blog called “concretelunch.net“. I plan on using a lot of photos and videos on the site, which will require both disk space and bandwidth. I purchased the domain name, but I’d rather host the blog — which will be the “homepage” — for free on WordPress.com. At the same time, I want to use my Concretelunch.net domain name (so I can just refer to “concretelunch.net”, rather than “wordpress.concretelunch.com”) and also use that domain to host and serve large files, run other applications, etc.

Here is a nice way to make it all work. I set up the blog on WordPress.com. Then on my server, under the domain concretelunch.net, I deleted the existing index.html file, replacing it with index.php . The index.php file contains only the following code — a simple redirect to my WordPress.com blog:

<?php
header( ‘Location: http://www.yoursite.com’ ) ;
?>

The nice thing about using a redirect like this is that I can use WordPress.com’s free service for low bandwidth stuff, but if I want to point to something like a gallery URL, like “concretelunch.net/gallery” (which doesn’t exist yet), I can do that easily. Of course, this only works because the server I host my domain name on runs the PHP scripting language. However, you could easily find a PERL or JavaScript redirect script to use instead.

Moving your site to a new server: some tricks

For those of you who aren’t techies, here is a basic technique for bypassing the “middle man” (your own computer) when moving your website from one server to another. By harnessing the power of the Linux command line, you can really save some time in a most kickass way.

If you have a website with a lot of content, like large picture galleries or video files, moving to a new server presents some challenges. I’m going to ignore the obvious challenge of getting all the systems, like your blog system, your gallery program, etc, to work again. The most basic challenge I’ve found is simply moving those large files and directories. For example, if you have a directory with 400 megs of images in it, and you need to move the whole thing to a new server, but you have a normal DSL line at home with a horribly slow upload speed, it is simply not practical to download the whole directory to your computer then upload it to the new one. It will take all day.

Continue reading