Posts Tagged ‘hosts’

Editing the hosts file to view a domain at a different IP address

April 12th, 2011

I’ve helped several clients move their sites from Blogger to a self-hosted WordPress blog. In some cases, they’ve already got their domain pointed to the Blogger blog. This makes it a bit trickier to set up the WordPress site on another host. If you try entering the domain name in the “General Settings” area, when you try to access WordPress you’ll be sent to the Blogger site instead.

Sometimes you can get around this by using the news host’s IP address amended with a folder that includes the user name for the hosting account. Such a link would look something like this: 128.128.128.128/~myusername However, not all hosts are set up like that. Some require that you have the domain pointing to the host before you can access the account via the web. Unfortunately, you don’t want to point the domain to the new host before the new blog is set up, and you can’t set up the blog until the domain points there, locking you in an endless loop.

There is a way to escape, though! You can edit the hosts file on your computer. Before daring to do this, be sure to back up a copy of the file. It’s not something you want to screw up. Your hosts file is located in a different location depending on your operating system and edition. This Wikipedia entry tells you where it’s located. I use a Windows machine, so that’s the process I’ll explain.

Windows doesn’t want you accidentally mucking around in your hosts file, so you have to open your text editor with admin privileges. To do that, right-click on the Notepad icon in your start menu and click “Run as administrator.” Then open the hosts file from the location linked to above. You might need to select “All files (*.*)” from the drop-down to be able to see the file in the list. Your hosts file should look something like this:

Hosts file

Editing this file will tell your computer (and only your computer) to look for the domain at an IP address of your choosing. Do this by entering the IP address of the site and then the domain name in the format displayed in the file. Hit save. That’s it! You don’t know the site’s IP address? It should have been listed in your host’s welcome email. If not, ask customer support for it.

Now when you visit the domain in question you should be pointed to your new site. You might need to clear your browser cache before you’ll get this result, or you can open up a different browser where the site isn’t cached and visit the domain there. You should be able to set up WordPress now just as if the domain were already pointing to the new site. No one else will see it until you update the domain servers via your registrar.

This can save you a lot of hassles because you can include the proper domain name in all the site settings instead of having to substitute it with the temporary IP address link which you’d have to change back after launch. Once your site is ready to launch, remove the new line from your hosts file or just comment it out. It’s pretty easy and it saves you a lot of trouble!

What web hosts do you recommend?

August 27th, 2009

It is human nature to ask friends or trusted experts for advice before making a purchase. My clients often ask me what web hosts I recommend. A web host is going to be the home for what may be some of your most precious data, so you want to make a good choice. Read my Eight tips on choosing a hosting service to get an idea of what a good host provides.

Below I’ve listed some hosts that I believe offer reliable, affordable services*. However, it is important to remember that no host is perfect, and even the best hosting companies can experience machine failures or hack attempts. I cannot guarantee the reliability of any host. I use the site FindMyHosting.com as a guide to choosing a web host. They collect user reviews, allow you to compare plans, and keep a record of every hosts uptime.

Some hosts offer a free domain name in their packages. Some plans require you to sign up for at least a year or more of service to get the best rates. Personally, I prefer to pay for hosting month-to-month in case I’m unsatisfied with the service.

QualityHostOnline.com
Quality Host Online is one of my preferred hosts. I’ve got my main blog hosted here and the support has always been fast and helpful. They automatically keep weekly and monthly backups. Prices vary depending on what specials they’re running, but you can get a starter plan for $1.99-$4.99 a month.

TotalChoiceHosting.com
TotalChoiceHosting.com is my other preferred web host. I’ve hosted sites with them in the past with no problems, and their forums provide excellent customer support. They make their login information very secure, which makes it harder to remember, but safer from hackers.

Pronethosting.com
One of my clients uses this host and has been happy with their service. They charge $4.95/mo and have unlimited storage and bandwidth. They also keep daily backups of your site. Get Pronethosting.net Web Hosting

HostGator.com
I have several sites currently hosted with HostGator. They’ve provided excellent service and uptime, but my only quibble is that they do not have regularly scheduled backups of my sites. I have to do it manually.

* Please note, I am a member of the affiliate programs for several of theses sites, which means I make a small commission if you sign up for hosting via my links. I assure you that I have linked only to hosts with whom I or one of my clients has a positive experience.