Support » How-To and Troubleshooting » htaccess load other domain

htaccess load other domain

  • Argh, I think I want something simple, but I can’t figure it out.
    I have installed WP in a subfolder of my main website (a network btw with subfolder setup): monas.gangleri.nl

    Now I have a domain name monas.nl (different host, no serverspace) that I want to use, but as of now the domain just refers to the subfolder (DNS settings URL). I’d like to have monas.nl behave like a ‘normal’ domain, with permalinks like monas.nl/postname.

    I don’t even know if I’m looking for a mod_rewrite, 301 redict, DNS settings or something else…………

Viewing 4 replies - 1 through 4 (of 4 total)
  • It looks like I’m looking for “pointing”. This seems somehow logical, but then again, htaccess in general doesn’t look very logical to me 🙂

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/monas/
    RewriteCond %{HTTP_HOST} ^(www\.)?monas\.
    RewriteRule ^(.*)$ monas/$1 [L]

    Monas.nl is the domain that I want to use for serverspace located at monas.gangleri.nl. In the DNS settings of monas.nl I use the setting URL to monas.gangleri.nl. In the WP install in the that subfolder I should use the above in the htaccess file, right…?

    The more I read about it and the more I try, the less I understand. I’ve been playing with another route: DNS settings. My domain monas.nl has DNS settings, but no hosting. I now have an URL setting to monas.gangleri.nl which works (or used to at least), but it did nothing but forward and then everything was taken take of by monas.gangleri.nl. What I would like is to have monas.nl think the folder monas.gangleri.nl is its root. I’ve tested A records with gangleri.nl server’s IP, but that didn’t work. So far everything I tried using htaccess has failed as well. Suggestions are welcome.

    rewrite seems the best way to go, but unfortunately I haven’t found anything that just works. Is it a combination of things perhaps?

    Something just occured to me. Should I make a CNAME record in the DNS settings of the domain that I want to use AND edit the URLs in the WP settings?

    I’m loosing my mind over this. There seem to be several options, none of them work. I have tried using htaccess without success, I’ve experimented with the DNS settings of Monas.nl, no success. Somebody even advised me to meddle with httpd.conf, but I seem not allowed to edit (or even see) it.

    Last night I had the most brilliant idea. What if I just make a network and use a plugin to map it? Also this proves to be WAY over my head.

    Let’s recapitulate:
    I have a domain Gangleri.nl with a subfolder network.
    I have a domain Monas.nl somewhere else with no hosting.
    I created a subdomain monas.gangleri.nl and installed a new website for which I want to use Monas.nl. This now works with a simple DNS redirect, but I want monas.nl to be a ‘real website’, a “mapped” one. Everything I’ve tried in the last few weeks failed utterly.
    My last test is to make monas.gangleri.nl into a network and map it. That didn’t work. I’ve created a new subsite and tried to map that one, that doesn’t work either. All instructions that I find are for people having two domains from the same host. Could somebody please advice me what to do with two domains at two hosts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘htaccess load other domain’ is closed to new replies.
Skip to toolbar