Tsohost.co.uk Forums - UK Web Hosting  
UK Web Hosting Linux Hosting Windows Hosting Domain Name Registration

Go Back   Tsohost.co.uk Forums - UK Web Hosting > Knowledgebase > cPanel Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 8th March 2010, 01:20 PM
Tsohost Staff Member
 
Join Date: Nov 2006
Posts: 565
Default An alternative method for previewing your website

For cPanel hosting customers who are moving their site to Tsohost we provide a temporary URL to access the domain prior to changing the nameservers. However, if you are installing a complex CMS, this may be troublesome as the CMS will still try to redirect you back to your primary domain.

In order to get around this, you can edit the hosts file on your PC to bypass the DNS lookup and access the site on our servers through your main domain rather than the preview URL. This only affects your PC and visitors to your website will see the site as normal.

Windows PC c:\windows\system32\drivers\etc\hosts

Mac OSX /private/etc/hosts

Linux /etc/hosts.

Just open it up in your favourite text editor (e.g. Notepad) and add a line:
Code:
188.65.113.1 www.yourdomain.com yourdomain.com
Replace 188.65.113.1 with the IP address of your site, as displayed in your control panel and replace "yourdomain.com" with your actual domain name.

Once you have made the change, save the file then restart your PC and browse to your website as normal. You will see it served from our systems and will be able to test the full functionality of your CMS. To view the site on your existing host, just remove the line from your hosts file.

Hope that helps .
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2