• Hi,

    I installed WordPress Multisite on website1.com (main) and created a subdirectory site like so:

    – website1.com (main)
    – website1.com/website2 (second)

    On DigitalOcean, I connected a new domain (website2.com) from Namecheap like so:

    – A RECORD, @, IP of website1.com
    – A RECORD, www, IP of website1.com

    On Namecheap, I connected the DNS like so: ns1.digitalocean.com (and ns2 and ns3).

    I went to Dashboard > Sites > website1.com/website2, and changed to this:

    When I go to website2.com, it only redirects to website1.com, not even to website1.com/website2

    How can achieve this: website2.com/wp-admin becomes website1.com/website2/wp-admin. (complete “replacement”, not just a redirection)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try rereading the docs… I think you are misunderstanding the concept of subdomains and this example stuff is adding to the confusion.

    Unless you bought another domain name called

    website2.com

    , your second site should be

    https://website1.com/website2

    There are no DNS records for a subdirectory as the domain points to the proper domain within the site already and WordPress knows how to setup that subdirectory site.

    Thread Starter worldwade

    (@worldwade)

    Thanks for your answer,
    What do you mean by “your second site”?
    Yes I did buy website2.com from Namecheap
    The goal is to use a custom domain (website2.com) that I bought on Namecheap.
    So website1.com/website2 becomes website2.com

    • This reply was modified 3 years, 9 months ago by worldwade.
    • This reply was modified 3 years, 9 months ago by worldwade.

    Okay, read this first then double-check the DNS settings.

    https://premium.wpmudev.org/blog/domain-mapping-wordpress-multisite/

    Your domain name settings in the WordPress site addresses need to be set properly. All three will point to the new domain name.

    I usually just use a Cname record for the ‘wwww’ instead of an A record for the www (machine name) version of the domain… unless I need a different server for the machine name but a Cname is more intuitive in my thinking. Quicker fix if it ever needs changing also.

    • This reply was modified 3 years, 9 months ago by JNashHawkins.
    • This reply was modified 3 years, 9 months ago by JNashHawkins.
    • This reply was modified 3 years, 9 months ago by JNashHawkins.

    Okay, read this first then double-check the DNS settings.

    https://premium.wpmudev.org/blog/domain-mapping-wordpress-multisite/

    Your domain name settings in the WordPress site addresses need to be set properly. All three will point to the new domain name.

    I usually just use a Cname record for the ‘wwww’ instead of an A record for the www (machine name) version of the domain… unless I need a different server for the machine name but a Cname is more intuitive in my thinking. Quicker fix if it ever needs changing also.

    Nice collection keep up the good work.

    Okay, read this first then double-check the DNS settings.

    https://premium.wpmudev.org/blog/domain-mapping-wordpress-multisite/MyAARPMedicare

    Your domain name settings in the WordPress site addresses need to be set properly. All three will point to the new domain name.

    I usually just use a Cname record for the ‘wwww’ instead of an A record for the www (machine name) version of the domain… unless I need a different server for the machine name but a Cname is more intuitive in my thinking. Quicker fix if it ever needs changing also.

    Thank you for this post. Good luck.

    Okay, read this first then double-check the DNS settings.

    https://premium.wpmudev.org/blog/domain-mapping-wordpress-multisite/MyAARPMedicare Login

    Your domain name settings in the WordPress site addresses need to be set properly. All three will point to the new domain name.

    I usually just use a Cname record for the ‘wwww’ instead of an A record for the www (machine name) version of the domain… unless I need a different server for the machine name but a Cname is more intuitive in my thinking. Quicker fix if it ever needs changing also.

    Thanks a lot for the great information. I was looking for the same and finally got my answer!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Subdirectory multisite mapping’ is closed to new replies.