+ Post New Thread
Results 1 to 9 of 9
Web Development Thread, Hosts file in Coding and Web Development; I am currently migrating a website to new hosting, and am using a hosts file edit to see the new ...
  1. #1
    dpittaway's Avatar
    Join Date
    Jan 2010
    Location
    Birmingham
    Posts
    23
    Thank Post
    5
    Thanked 4 Times in 3 Posts
    Rep Power
    10

    Hosts file

    I am currently migrating a website to new hosting, and am using a hosts file edit to see the new website using the same URL.

    However, the staff here have continued to add to the website since the backup was taken, so I will have to do a bit of cross-referencing to add the extra articles. What I would like to know is if there is a simple way to bypass the line that redirects it in the hosts file without actually editing the file itself? I would need to be checking both the old and new sites repeatedly, so could do with being able to access both installs of the site concurrently.

    Ideally I would like to have one browser open (say Firefox) with the new website in it, and one browser open (say IE) with the old website in it, so I can quickly copy and paste the newer articles across.

    I don't really want to have to keep editing the hosts files to jump in and out of each website to copy and paste...


    The only other thing Google has yielded so far is the idea of running virtual instances of Windows to do it - surely there has to be a less complicated way?

    Does anyone have any experiences of doing this?

  2. #2

    rush_tech's Avatar
    Join Date
    Jul 2006
    Location
    Nottingham
    Posts
    1,414
    Thank Post
    111
    Thanked 265 Times in 201 Posts
    Rep Power
    194
    Could you not just leave the live site alone and create the new site locally using something like apache friends - xampp

  3. #3
    dpittaway's Avatar
    Join Date
    Jan 2010
    Location
    Birmingham
    Posts
    23
    Thank Post
    5
    Thanked 4 Times in 3 Posts
    Rep Power
    10
    Quote Originally Posted by rush_tech View Post
    Could you not just leave the live site alone and create the new site locally using something like apache friends - xampp
    Thanks for the response, although I think I'm past this point as I have the site already up on the new hosting, ready to have the extra articles added.

    Ideally I just want to be able to access the two sites side by side if at all possible. I could still do it by logging into the old one and copy pasting batches of articles into Notepad, but I just thought it'd be a bit more convenient if there was a way to access them together and have them side by side to copy and paste. If there were a workaround where you could make one browser ignore the hosts file that'd be great, but I'm not sure if that's possible at this stage.

  4. #4
    Devontechie's Avatar
    Join Date
    Nov 2007
    Location
    UK
    Posts
    902
    Thank Post
    181
    Thanked 201 Times in 164 Posts
    Rep Power
    72
    Quote Originally Posted by dpittaway View Post
    Thanks for the response, although I think I'm past this point as I have the site already up on the new hosting, ready to have the extra articles added.

    Ideally I just want to be able to access the two sites side by side if at all possible. I could still do it by logging into the old one and copy pasting batches of articles into Notepad, but I just thought it'd be a bit more convenient if there was a way to access them together and have them side by side to copy and paste. If there were a workaround where you could make one browser ignore the hosts file that'd be great, but I'm not sure if that's possible at this stage.
    There is an add on for firefox that lets you use a different host file. I have it ob my work machine but can't remember the name of it..

  5. #5

    Join Date
    Dec 2012
    Location
    Skipton, North Yorkshire
    Posts
    28
    Thank Post
    11
    Thanked 3 Times in 3 Posts
    Rep Power
    15
    Can't you just remove the line in your hosts file and access the new website directly on the address of the new hosting?

  6. #6
    dpittaway's Avatar
    Join Date
    Jan 2010
    Location
    Birmingham
    Posts
    23
    Thank Post
    5
    Thanked 4 Times in 3 Posts
    Rep Power
    10
    Quote Originally Posted by stevehill06 View Post
    There is an add on for firefox that lets you use a different host file. I have it ob my work machine but can't remember the name of it..
    Interesting, sounds like it'd do the job... if you do come up with the name feel free to let me know.

    I have done most of the articles just by copy-pasting into notepad. Luckily they were mostly just text.

    Now to work on why JComments aren't transferring!

  7. #7
    Devontechie's Avatar
    Join Date
    Nov 2007
    Location
    UK
    Posts
    902
    Thank Post
    181
    Thanked 201 Times in 164 Posts
    Rep Power
    72
    Quote Originally Posted by dpittaway View Post
    Interesting, sounds like it'd do the job... if you do come up with the name feel free to let me know.

    I have done most of the articles just by copy-pasting into notepad. Luckily they were mostly just text.

    Now to work on why JComments aren't transferring!
    @dpittaway sorry, I forgot about this! The plugin for FireFox is called Change Hosts
    Last edited by Devontechie; 10th July 2013 at 04:15 PM.

  8. Thanks to Devontechie from:

    dpittaway (10th July 2013)

  9. #8
    penfold_99's Avatar
    Join Date
    Feb 2008
    Location
    East Sussex
    Posts
    983
    Thank Post
    58
    Thanked 165 Times in 117 Posts
    Rep Power
    68
    I use Host Switcher for Firefox which is very useful when using it with multiple sites.

  10. Thanks to penfold_99 from:

    dpittaway (10th July 2013)

  11. #9
    dpittaway's Avatar
    Join Date
    Jan 2010
    Location
    Birmingham
    Posts
    23
    Thank Post
    5
    Thanked 4 Times in 3 Posts
    Rep Power
    10
    Nice one guys, I will check these out!

SHARE:
+ Post New Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •