Jump to content
Huntargh

cPanel rookie needing advice on Subdomains!

Recommended Posts

Hi All,

I've tried googling but can't seem to find a solution - at least a solution that I can understand! I'm not 'new' to web hosting, cpanel, wordpress but I am certainly a rookie. I'm trying to self teach myself simply as a hobby, because some close friends/family need websites developing.

I am familiar with being able to use Addon Domains in cpanel to begin creating a new website for someone with a new domain. However my question is that a couple of people ALREADY have websites, so I don't want to change their domain nameservers and their current website go down for a couple of weeks while I build them a new one. Is it possible to create a subdomain, build a fresh new website, and when it is ready to go bring their domain across to access it? 

Thank you in advance for any help you can give. I really do require any instructions/information in layman's terms as much as possible!

Share this post


Link to post
Share on other sites

It depends where the domains are hosted.

This is how we'd do it assuming you had a package with 20i, but insert your host name instead!

1) If the domain and package is with 20i. You'd want to create a Hosting Package with a domain reference, and develop the new site on that package.  When you've finished developing the new site, you remove the domain name from the old package and add it to the new one. 

2) The domain name is with someone else but the Hosting Package is with 20i. You'd want to create a Hosting Package with a domain reference, and develop the new site on that package.  When you've finished developing the new site you'd want to point the A record of the domain to the new package at 20i.

Hope that helps.

Share this post


Link to post
Share on other sites
5 hours ago, Huntargh said:

Is it possible to create a subdomain, build a fresh new website, and when it is ready to go bring their domain across to access it?

Build the site on a subdomain on YOUR hosting. When it's ready for launch move the site across to THEIR hosting.

I use a plugin called 'duplicator'. It does it all for you.

Share this post


Link to post
Share on other sites
6 hours ago, Rich C said:

It depends where the domains are hosted.

This is how we'd do it assuming you had a package with 20i, but insert your host name instead!

1) If the domain and package is with 20i. You'd want to create a Hosting Package with a domain reference, and develop the new site on that package.  When you've finished developing the new site, you remove the domain name from the old package and add it to the new one. 

2) The domain name is with someone else but the Hosting Package is with 20i. You'd want to create a Hosting Package with a domain reference, and develop the new site on that package.  When you've finished developing the new site you'd want to point the A record of the domain to the new package at 20i.

Hope that helps.

 

1 hour ago, fisicx said:

Build the site on a subdomain on YOUR hosting. When it's ready for launch move the site across to THEIR hosting.

I use a plugin called 'duplicator'. It does it all for you.

Thank you both for your very helpful comments. By the sounds of it, what I am trying to do isn't possible without setting up a new hosting package, or asking them to set up their own hosting.

I assumed it would be a relatively easy process of being able to build a website under a sub-domain and then just link their domain name to it when it is ready.

I would rather not get them to set up their own hosting as this adds to cost - the idea is that I am just enjoying my hobby of design/creation whilst doing them a favour without adding cost to themselves or me by creating new host packages.

Thanks again!

 

Share this post


Link to post
Share on other sites

You can redirect from their domain name to your subdomain. But you need to apply a mask so the URL looks like their domain not the subdomain.

The alternative is to use addon domains. But there may be restrictions with your host on how many of these you can create.

I am surprised that cost is an issue. You can get decent hosting for a few pounds per month.

Share this post


Link to post
Share on other sites
1 hour ago, fisicx said:

I am surprised that cost is an issue. You can get decent hosting for a few pounds per month.

Thanks fisicx,

I thought this would be a relatively simple thing to do, so presumed it would be at no cost to them therefore I would rather not ask them to set up their own hosting and pay monthly for the 'favour' of me creating them a website. And of course if I end up with a few different host packages on my end the cost all ads up for something that;s just a hobby!

 

When you said I can apply a mask, this sounds like a potential solution to what I am trying to do. If it's not too long winded would you mind explaining how I can do this?

 

Thanks again!

Share this post


Link to post
Share on other sites

Easiest was to do this is in htaccess:

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.be$ [NC]
RewriteRule ^ http://www.mydomain.nl%{REQUEST_URI} [L,NE,P]

https://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_p

Share this post


Link to post
Share on other sites
20 hours ago, Huntargh said:

However my question is that a couple of people ALREADY have websites, so I don't want to change their domain nameservers and their current website go down for a couple of weeks while I build them a new one. Is it possible to create a subdomain, build a fresh new website, and when it is ready to go bring their domain across to access it?

If someone already has a website then they have hosting. You 'could' build the new site in their space so long as you're careful not to overwrite the live site, but it's risky for sure.

I'd suggest getting some cheap space of your own to develop the new site in. If you setup the hosting under their domain you could either use a sub domain based on their domain as an alias, build the site and then migrate it to their live server once ready. Option 2 without a sub domain would be the same but instead of using a sub domain you could use your hosts file to view the new site in your browser when the rest of the world would get their current live site, this is safer as there is no chance of a duplicate site (e.g. both sub and main urls are being indexed).

Either way you cut it you will need development space or be extremely careful in their live hosting. As many point out there's some dirt cheap hosting out there ideal for developing multi-sites, e.g. TSO has host 3 sites for £4.58 per month, just cancel the hosting when you're done. 

Edited by BrowserBugs

Share this post


Link to post
Share on other sites
6 hours ago, fisicx said:

Easiest was to do this is in htaccess:


Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.be$ [NC]
RewriteRule ^ http://www.mydomain.nl%{REQUEST_URI} [L,NE,P]

https://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_p

Thanks very much, I'll keep this handy for sure.

 

3 hours ago, BrowserBugs said:

If someone already has a website then they have hosting.

So far as I'm aware their website are simply made with 'free' web building tools that are available, where they have no involvement in the hosting side of things. Judging from the responses I have had so far, it seems the easiest way would be to setup a new hosting package using their domain (even one of these £1.99 a month for 1 website would do I suppose), build the site, then when it is done change the nameservers of their domain to the new host? So far it seems that would be the easiest thing to do, a little frustrating though as I selected a package already with unlimited web space, websites, email accounts etc! 

Share this post


Link to post
Share on other sites
1 minute ago, Huntargh said:

 I selected a package already with unlimited web space, websites, email accounts etc! 

If that's the case just log in to your cpanel and add their domain as a new account.

Still build the site on a subdomain so the client can see it then when you are ready to go live move the site and update the nameservers.

Share this post


Link to post
Share on other sites
2 hours ago, fisicx said:

when you are ready to go live move the site and update the nameservers.

I will give this a go, thanks again for your help fisicx, I appreciate that talking to me must be like training a pig to fly. I have looked in my cPanel and not sure where to create a completely new account with a new domain? Also when you say 'move the site' from the subdomain, would you mind explaining the process for this? Only if you have time! I wouldn't blame you for giving up on me as a lost cause!

Share this post


Link to post
Share on other sites

I depends on how your hosting is set up. Some hosts have a feature where you add new domains in the client area.

Moving the site again depends on the hosting package. You may need to use a plugin like duplicator.

Share this post


Link to post
Share on other sites

@Huntargh what I have done is purchased a cheap address (URL) for when I am updating one of my websites. When I am happy with the changes, I just copy the files across to the live website. It is not the industry way of doing it, but it makes it easier for me to manage the changes.

 

If I am only doing minor changes, then I will edit the live website. Make sure you copy the old website before making any changes, so if needed you can just copy those files back up to your webserver.

 

I’m sure some will cringe at my method above, but its easy to use unless you want to invest in the hours of learning and industry standard of updating your website and tracking changes.

Share this post


Link to post
Share on other sites
3 hours ago, fisicx said:

You may need to use a plugin like duplicator.

 

1 hour ago, GrahamUK33 said:

When I am happy with the changes, I just copy the files across to the live website.

 

Great stuff thanks guys. Your advice will help a lot!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Noob
      Hi Guys,
      Let me start by declaring that I'm just a kid trying to self teach myself wordpress, simply because I enjoy it as a hobby. This is my first ever website, so constructive criticism in easy-to-understand terms is welcome! 
      I have made a website advertising myself as a web developer. Let me remind you I'm just doing this as a hobby for friends and family - so don't expect the website to be anywhere near the standard of a professional designer!!!
      I think I have just about finished the website, however there are a couple of issues that I would like to clear up that I don't understand. 
      Website: magnifiweb.co.uk
      1. When I am on the website and switching to and from the different navigation pages it loads very quickly. However, when I haven't been on the website for a few hours and load it up by typing 'magnifiweb.co.uk' into the URL, it can take at least 5 seconds to load the home page. I have used some speed test websites like Pingdom, and it says that the wait time is mainly down to the URL 'waiting'. I have absolutely no redirects set up to slow this process down, so can't understand why only sometimes it can take this long to load. 
       
      2. Using the same Pingdom speed test website (see attached image), there is an image called 'logooriginalwhitebg150px-150x150.jpg' I have circled this in red. This is an OLD image that I decided to remove from my Wordpress media library and and not use anymore. I navigated to the location of this image in my File Manager in Cpanel and deleted it from the folder as well - but for some reason it keeps coming back! Every time I go and check that folder in cpanel the same image has come back on it's own. Very frustrating.
       
      Any advice on these matters is greatly appreciated!

    • By docchazz
      hi everyone

      i've been using hubspot for my blog, so i create a subdomain blog.domain.com which redirected to my hubspot blog posts

      however, i am discontinuing with hubspot, and have reposted all my blog posts on my my domain www.domain.com

      i am trying to create a htaccess record to redirect all the old links to the new ones.

      something like:
      old address: blog.domain.com/(article slug)
      new address: www.domain.com/2016/10/29/(article slug)
      (yes the date is fixed and the same for all posts, i've created them all today)

      can someone help me with the htaccess record?

      thanx in advance!
    • By lizyap
      Please Help!!! Just got new hosting with GoDaddy using the cPanel. php contact forms are NOT working!! GoDaddy support is useless - refers me to php.net, which give no clear instructions on how to alter code in contact forms. Can anyone send me contact form php code that will work in GoDaddy's new cPanel? (Old GoDaddy hosting worked perfectly!!!!)
    • By VN-Jonathan
      Hi all,
       
      So, a long time ago when we restructured the technical side of Virgo Networks, we evaluated the options available for control panels.
       
      From a systems management point of view, we were mostly looking beyond features (which are often largely the same) and more towards how intuitive the user interface was, and aslo the support structure and company behind the software. We needed something we knew was secure, and from a company who we could rely on to offer competant and professional support from the developers (albeit in the hope we would never need to call upon the latter).
       
      Neesless to say, these priorities are rather different from those held by our end users, so I was wondering what people here think of various control panels, specifically:
       
      -Do you have a preference?
      -Is this something that influences your decision when choosing a host?
      -If you were to consider a host that uses something other than your preference, what features would be "must haves"?
      -Is there anything that you'd avoid at all costs?
      -And so on...
       
      All opinions, rants, raves and ideas much appreciated!
       
      Jon
       
      PS - In the end we chose InterWorx... those guys and their software rock
    • By rajanyadav
      Hi All,
      I Am Confused Again I Want Make A Blog Using Wordpress CMS For Our Website But I Am Not Decide What Is The Best Subdomain Or A Directory I Mean Installing With Slash Any Hep Me Please Whats Right Subdomain Or Directory For Crawling, Indexing & Ranking?
  • Recently Browsing

    No registered users viewing this page.

  • Member Statistics

    • Total Members
      58,433
    • Most Online
      4,970

    Newest Member
    f9ariel
    Joined
  • Forum Statistics

    • Total Topics
      65,747
    • Total Posts
      452,964
×