Forums

url says www.maindomain.com/subdomain but need www.subdomain.com (19 posts)

  1. Martin volub
    Member
    Posted 1 year ago #

    Hi

    I've installed a second WP in /public. I own the url http://www.subdomain.com and have pointed the domain to the folder /subdomain.

    If I enter http://www.subdomain.com in my browser I see the site for http://www.subdomain.com but the url reads:

    http://www.maindomain.com/subdomain.

    Any ease fixes for this? I didn't use any plugins or multisite by the way.

    Thanks

  2. James
    Happiness Engineer
    Posted 1 year ago #

    It sounds like the domain wasn't setup correctly. You should contact your hosting provider about that.

  3. Martin volub
    Member
    Posted 1 year ago #

    I did actually. I told them: How do I set it so that both sites have their own url?
    They said: you give us money and we'll change the NS settings.

    So I figured I googled and found that I should do a 301 redirect, apparently. Tweaked the htacess file but that doesn't help.

    To me it seems like just a matter of redirecting. Anybody know what I'm doing wrong?

  4. James
    Happiness Engineer
    Posted 1 year ago #

    What you're seeing is a 301 redirect, that's the problem. The domain is not functioning on its own for some reason (probably a DNS record issue). There should be no need for a redirect.

  5. Martin volub
    Member
    Posted 1 year ago #

    I see, thank you.

    Just so that I get it straight:

    domain one is the one that goes with my account. Domain two is at a different regristrar, and pointed to domain one.
    If I'd type http://www.domain2.com in a browser, it should pull up the site which sits in the same /public folder as my original site, showing http://www.domain2.com as the url? Automaically?

    If so, can my provider block that and charge me money for it?

  6. James
    Happiness Engineer
    Posted 1 year ago #

    Are you trying to display the same blog with two domains?

  7. Martin volub
    Member
    Posted 1 year ago #

    No. Two blogs, two domains, two identities, and I plan to add a few more. that is, once I can get the hang of this :)

  8. Martin volub
    Member
    Posted 1 year ago #

    Could it be that the folder /domain2 should live in the root folder instead of in the /public folder?

  9. James
    Happiness Engineer
    Posted 1 year ago #

    domain1.com should be pointing to /public_html/ (or whatever your web root is) and should be displaying the WordPress blog installed within.

    domain2.com should be pointing to /public_html/domain2/ and should be displaying the WordPress blog installed within. If that isn't working, then the domain is not configured properly.

  10. Martin volub
    Member
    Posted 1 year ago #

    Hang on a sec: a friend told me that at the registrar I should point to http://www.domain1.com/domain2 (the location of the folder, right?)

    Do you mean that domain2 should be pointing to http://www.domain1.com/public.html/domain2/ ? Including the slash, in that syntax?

  11. James
    Happiness Engineer
    Posted 1 year ago #

    a friend told me that at the registrar I should point to http://www.domain1.com/domain2 (the location of the folder, right?)

    No, that's just domain mapping, hence your problem.

    The domain first needs to be properly configured on your hosting account (typically done by creating an addon domain in your hosting provider's control panel). Then, you need to point the domain's DNS records to your hosting provider's nameservers via your registrar's control panel.

  12. Martin volub
    Member
    Posted 1 year ago #

    Ok, clear, thank you. I have made a second domain on the site and can access it. So I'm going to my registrar now and check.

  13. Martin volub
    Member
    Posted 1 year ago #

    Registrar says they automatically set the nameservers when forwarding. Let's see in a few minutes.

  14. Remember it can take up to 72 hours for DNS to reset.

    It shouldn't, and it rarely does, but 72 is the drop dead limit. Go make some tea :)

  15. Martin volub
    Member
    Posted 1 year ago #

    I'm having buckets of tea. I don't think it's going to work because my host wants money for changing a nameserver setting for me. Because of the 'added bandwidth'. Which is a lie because I only use 2 percent of the bandwidth and diskspace I'm paying for.

  16. James
    Happiness Engineer
    Posted 1 year ago #

    You change the nameservers with your registrar, not your hosting provider. Either way, it sounds like it might be time for a more helpful hosting provider. There are plenty to choose from.

  17. Martin volub
    Member
    Posted 1 year ago #

    I know. It's a question of money for the time being. Just started a new venture.

    So I've added a domain (before posting here) called domain2 at my host.
    In dns setting is see: ns3.firstfind.nl and ns4.firstfind.nl.

    You mean that my registrar will forward to those automatically? Then why is my host saying I should pay money! It's not that they're not helpful, they're just really expensive

  18. James
    Happiness Engineer
    Posted 1 year ago #

    In dns setting is see: ns3.firstfind.nl and ns4.firstfind.nl.

    Are those your hosting provider's DNS servers?

    You mean that my registrar will forward to those automatically?

    No, you need to make the change in your registrar's control panel.

    Then why is my host saying I should pay money!

    Because they want to do all of this for you, as long as you have enough money to give them.

  19. Martin volub
    Member
    Posted 1 year ago #

    Yes, those are the the dns servers of my host.

    I went to my registrar and aside from pointing domain2 to domain1, I also clicked 'set nameservers'. They replied that they would do it automatically for me.

    Fine. Waited and got no result so I mailed my host and told them to do it. Silly, perhaps. Now my registrar informed me they had received a request and it takes 1 or 2 days.

    Sure will have more patience for the next three domains I want to set up.

    Thanks a lot for the help! I'll post if it worked. And if it didn't :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.