Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. I’m including instructions below to set a hosts file on your computer. While this is a little complex, it is a completely foolproof way of testing your website and ensuring it works on our systems.
  2.  
  3. Basically setting a hosts file fools your computer into thinking that the website runs directly from our servers, even though it does not yet point to us. This only affects your PC and visitors to your website will see the site as normal in the old location.
  4.  
  5. To do this you need to edit a file on your computer:
  6.  
  7. The location of the file is as follows:
  8.  
  9. Windows PC c:/windows/system32/drivers/etc/hosts
  10.  
  11. Mac OSX /private/etc/hosts
  12.  
  13. Linux /etc/hosts
  14.  
  15. Just open it up in your favorite text editor (e.g. Notepad) and add the following line at the bottom:
  16.  
  17. [HOSTS FILE HERE]
  18.  
  19. On Windows you need to run Notepad with administrator permissions (right click -> run as administrator). On Mac the best way to edit it is using terminal and typing “sudo nano /etc/hosts”, then adding the line and pressing Ctrl+X.
  20.  
  21. 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.
  22.  
  23. To view the site on your existing host, just remove the line from your hosts file and restart.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement