Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5932063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:46:57+00:00 2026-05-22T14:46:57+00:00

I require some guidance with redirects please: I have two WordPress installations on one

  • 0

I require some guidance with redirects please:

I have two WordPress installations on one hosting – one each in a separate sub-directory.

I was able to get the control panel to set up redirects for each domain, so that – for example:

  • www.domain1.com redirected to www.domain1.com/d-one/

and

  • www.domain2.com redirected to www.domain2.com/d-two/

Which works fine – I’m not too bothered that the path contains a subdirectory (I assume I can’t hide it).

However, for convenience of the visitors, I would like to set up redirects so that for example:

  • www.domain1.com/contact redirects to www.domain1.com/d-one/contact

and

  • www.domain2.com/contact redirects to www.domain2.com/d-two/contact

… the redirect knows which domain is which.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:46:58+00:00Added an answer on May 22, 2026 at 2:46 pm

    Seeing as no-one was in any hurry to help 🙁 , I did my own bit of digging elsewhere (something I probably should have done earlier if I weren’t in such a flap)…

    After exhausting all the threads on this site, I found this site:

    http://corz.org/serv/tricks/htaccess2.php

    which sorted me right up with this solution under “multiple domains in one root“:

    #two domains served from one root..
    RewriteCond %{HTTP_HOST} domain-one.com
    RewriteCond %{REQUEST_URI} !^/one
    RewriteRule ^(.*)$ one/$1 [L]
    
    RewriteCond %{HTTP_HOST} domain-two.com
    RewriteCond %{REQUEST_URI} !^two
    RewriteRule ^(.*)$ two/$1 [L]
    

    and it also helped me to hide the unwanted subdirectories d-one and d-two.

    Loverly jubbly!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a validation class which needs improving. If I require some custom validation
I have a singleton object that use another object (not singleton), to require some
I have a console application that require to use some code that need administrator
I have a asp.net mvc application. Some pages require SSL, is there a way
This is a tough one, and will require some up to date expertise on
I have a common scenario that I am looking for some guidance from people
I am new to this topic and require some guidance in implementing Apple Push
I'm seeking some guidance to make a self-updating application UAC compliant. I have an
I have been exploring algorithms that require some work on matrices, and I have
I'm working on a Google App Engine program that will require some basic spell

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.