1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to work on website before domain propagates?

Discussion in 'BlackHat Lounge' started by firstnamelastname, May 19, 2017.

  1. firstnamelastname

    firstnamelastname Junior Member

    Joined:
    Jun 20, 2015
    Messages:
    184
    Likes Received:
    31
    I want to install workpress on an add on domain and then work on the wordpress site, edit the theme, write content, add different pages and posts.

    But here is the thing: I want to do all of the above without updating my domain's DNS settings to this host. so I would go to my host's cpanel, create an addon domain, but not update my DNS settings in my domain's admin panel (for a short time while I develop the site)

    How can I do that? I know how to install wordpress but then how would I access wp-admin so I can play with the theme and add content and all that?

    can I do it by ip address? For example 112.554.333.11/addondomain.com/wp-admin ?
     
  2. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    1,665
    Likes Received:
    816
    Occupation:
    Occupation
    Location:
    Location
    You can do so by editing your local /etc/hosts file. Just google based on your system how to edit it.

    In your file you need to add line such as

    112.554.333.11 yourdomain.com
    112.554.333.11 www.yourdomain.com

    and that should do the trick. For your PC it'll be running like it's live.
     
    • Thanks Thanks x 2
  3. virtualpurity

    virtualpurity Jr. VIP Jr. VIP

    Joined:
    Nov 12, 2012
    Messages:
    720
    Likes Received:
    415
    Occupation:
    SEO, Hosting
    Location:
    /root
    Home Page:
    There is a temporary url from which you can access your website without a domain. It should be sent in your welcome email when buying the hosting by default.

    ex : http://hostip.com/~yourusername

    Edit : This is assuming that you are using cpanel.
     
    • Thanks Thanks x 1
  4. firstnamelastname

    firstnamelastname Junior Member

    Joined:
    Jun 20, 2015
    Messages:
    184
    Likes Received:
    31
    But I am on shared hosting.
     
  5. I know SEO

    I know SEO Marketplace Mod Moderator

    Joined:
    Nov 29, 2012
    Messages:
    15,689
    Likes Received:
    6,060
    It doesn't matter, it will still work.
     
    • Thanks Thanks x 2
  6. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    1,665
    Likes Received:
    816
    Occupation:
    Occupation
    Location:
    Location
    It does not matter on what type of hosting you are.

    Ask your hosting provider or see yourself what is your shared hosting IP. This is location of where your site is stored, and by editing hosts file you'll be telling your PC that for when you type yourdomain.com it will take you to IP that you set in your local hosts file.

    You can use solution as suggested by @virtualpurity as well such as http://hostip.com/~yourusername but I tend not to prefer that for WordPress sites as sometimes themes and or plugins do love to get data trough url such as yourdomain.com/blabla.css instead of using relative paths so you might not get full site look & feel by using url like the one suggested. Although it does work as well.

    Edit:
    You beat me to it :)
     
    • Thanks Thanks x 1
  7. firstnamelastname

    firstnamelastname Junior Member

    Joined:
    Jun 20, 2015
    Messages:
    184
    Likes Received:
    31
    So your method does not create any of those plugins and path problems? When I am happy with the site, I can just change domain's DNS and everything will work?

    I already got my site's ip by using this site: https://www.site24x7.com/find-ip-address-of-web-site.html
    By hosts file do you mean the one in my windows? I think I know how to do that because a long time ago I was using a cracked software and I had to edit my hosts file to get it to work.

    Why cant I just access by ip, like 123.444.55.12?
     
  8. virtualpurity

    virtualpurity Jr. VIP Jr. VIP

    Joined:
    Nov 12, 2012
    Messages:
    720
    Likes Received:
    415
    Occupation:
    SEO, Hosting
    Location:
    /root
    Home Page:
    If you are using http://hostip.com/~yourusername than edit your wordpress and change the default website url to that url, so you wont have any issues with plugins or themes, wp will automatically change all resource paths to that.

    Once you are done and your domain is pointed than just replace default website url with your domain and you are all set. ( dont forget to change any custom links you have placed on your website as well )
     
    • Thanks Thanks x 1
  9. djp371

    djp371 Elite Member

    Joined:
    Apr 20, 2009
    Messages:
    1,968
    Likes Received:
    342
    Occupation:
    Internet marketing
    Location:
    United States
    Home Page:
    Right, you can edit your hosts file just like what is said here. Add your core IP plus your domain to your hosts file.