Wordpress website - two domain names - is this possible ?

11 replies
I already have a Wordpress website on a single domain and I want to have another domain name pointing to this website. This is only required for the landing page. For example: lets assume that my current domain name is www.domain1.com
you can have a landing page similar to:
www.domain1.com/page11
www.domain1.com/page2

I want to be able to view the above pages when using url:
www.domain22.com/page11
www.domain22.com/page2
With the new domain name - I only care about the landing page - if you click on any link in the landing page I will use the old domain name.

I don't want to replicate my website and I only want to do it for the landing page.

Is this possible ?
#domain #names #website #wordpress
  • Profile picture of the author David Beroff
    Sure! The second domain will just have a single .htaccess file which redirects every hit to the first domain. (Don't forget the dot before the h in the file name.) If it's critical that the URL stays in the second domain, then build a single frame dynamically so that it "looks" like you're still in the second domain while you're displaying content from the first. Given that you're OK with remaining clicks going to the original domain, this latter approach is probably not worth the effort.
    Signature
    Put MY voice on YOUR video: AwesomeAmericanAudio.com
    {{ DiscussionBoard.errors[8020756].message }}
  • Profile picture of the author timpears
    Wouldn't a simple redirect work for this? Your domain22 is just redirected to the domain1 at the registrar. Or am i missing something?
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[8022086].message }}
    • Profile picture of the author David Beroff
      Originally Posted by timpears View Post

      Wouldn't a simple redirect work for this?
      The solution that I am describing would redirect each URL to the corresponding URL in the other domain, as requested.
      Signature
      Put MY voice on YOUR video: AwesomeAmericanAudio.com
      {{ DiscussionBoard.errors[8022395].message }}
      • Profile picture of the author surreal
        Htaccess is likely too complicated for most people. Parking the second domain is likely your best option
        {{ DiscussionBoard.errors[8022615].message }}
        • Profile picture of the author David Beroff
          Originally Posted by surreal View Post

          Htaccess is likely too complicated for most people. Parking the second domain is likely your best option
          He was asking if it was possible, not if it was easy. If he doesn't care to do it himself, he can always outsource. I'd do it for US$20, and I'm pretty certain one can find someone on oDesk to do it for a quarter of that price or less.
          Signature
          Put MY voice on YOUR video: AwesomeAmericanAudio.com
          {{ DiscussionBoard.errors[8022677].message }}
          • Profile picture of the author JackCronfield
            I forgot to mention that the URL in address bar shouldn't change (for the landing page only). For example if you enter the URL : www.domain22.com/page11 you will be redirected to www.domain1.com/page11 but the URL in address bar shouldn't change. Should I use the single frame dynamically or is there another solution ?
            {{ DiscussionBoard.errors[8023315].message }}
            • Profile picture of the author David Beroff
              Originally Posted by JackCronfield View Post

              I forgot to mention that the URL in address bar shouldn't change (for the landing page only). For example if you enter the URL : www.domain22.com/page11 you will be redirected to www.domain1.com/page11 but the URL in address bar shouldn't change. Should I use the single frame dynamically or is there another solution ?
              A dynamically-generated frame solution is slightly more complex, but would meet your need of not appearing to change the URL. You'd still use .htaccess (so you only need one script "under the covers", not one for every single page), and that would then trigger a script which takes the part of the URL after the first slash, then builds the frame (on-the-fly) that pulls in the desired page. This way, the URL won't change, although you do need to be aware that people will still be able to View Source to see the "real" page location.

              Also, the comment above regarding SEO and duplicate content may very well have some validity.
              Signature
              Put MY voice on YOUR video: AwesomeAmericanAudio.com
              {{ DiscussionBoard.errors[8024005].message }}
  • Profile picture of the author Scotty Bee
    Easiest way I found is free service at Title

    Simply enter the original url and the url that you want it to redirect it to then save the file on your computer.
    Next step is to then upload that file to your landing page site so that when someone lands on it , they will be redirected to where you want and most importantly, the url in the bar stays the same so the person still thinks they are on the original page/domain they first went to.
    Scotty

    PS forgot to mention your links on your landing page will need to have the (dot)htm after it so it works
    Signature
    {{ DiscussionBoard.errors[8023324].message }}
  • Profile picture of the author neelshopno123
    Originally Posted by JackCronfield View Post

    I already have a Wordpress website on a single domain and I want to have another domain name pointing to this website. This is only required for the landing page. For example: lets assume that my current domain name is www.domain1.com
    you can have a landing page similar to:
    www.domain1.com/page11
    www.domain1.com/page2

    I want to be able to view the above pages when using url:
    www.domain22.com/page11
    www.domain22.com/page2
    With the new domain name - I only care about the landing page - if you click on any link in the landing page I will use the old domain name.

    I don't want to replicate my website and I only want to do it for the landing page.

    Is this possible ?
    A wise way to do this:
    - Just copy the whole website in another folder and put it into your root directory.
    - Now use 'add one domain' option [if your host supports] to point the new domain to the new folder.
    - Configure the WP settings in database and admin

    You are done!

    redirecting url may kill your seo status.
    Hope that helps
    Signature
    WordPress PROBLEM? Fix at $13 only! Email me neelshopno123@gmail.com
    {{ DiscussionBoard.errors[8023497].message }}
  • Profile picture of the author Frode D
    If the goal is just to have one wordpress installation respond to two names then I think the easiest solution is to simply install a domain mapping plugin in wordpress.
    {{ DiscussionBoard.errors[8025102].message }}
  • Profile picture of the author annaharris
    you have to redirect 2nd domain by using 301 redirection in .htaccess file, which redirects 2nd domain's every visit to the first domain.
    {{ DiscussionBoard.errors[8035206].message }}

Trending Topics