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 5959733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:43:36+00:00 2026-05-22T18:43:36+00:00

I have 2 different urls: mywebsite.com and myotherdomain.com mywebsite.com is the default URL that

  • 0

I have 2 different urls: mywebsite.com and myotherdomain.com

mywebsite.com is the default URL that goes to my site’s homepage. When someone types myotherdomain.com, I’d like it to go to mywebsite.com/other

Is this possible using .htaccess?

  • 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-22T18:43:37+00:00Added an answer on May 22, 2026 at 6:43 pm

    On myotherdomain.com you can use these directives:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)$ http://mywebsite.com/other/$1
    

    This will also append what follows the domain name to /other/, e.g.

    myotherdomain.com/mypath/page
    

    will be rewritten to

    http://mywebsite.com/other/mypath/page
    

    By the way, these Apache docs can be helpful.

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

Sidebar

Related Questions

I have different urls that points to the same code www.url1.com www.url2.com I need
I have a UIWebView that I would like to load different URLs depending on
I have a site running in a few environments on different URLs (i.e. dev.mysite.com
I have a working webview that i modify to load different urls. This site
I have a query like this, that looks at loads of different URLs, and
I have a very simple table on my website, that displays different URL's. I
I have to do a site redirect through script for about 10 different URLS
I have 3 different domains, www.example.com, www.mywebsite.com, www.domain.com. In my server, I have 3
I have a set of urls like... www.example.com/page/1/name/abc www.example.com/city/la/name/abc www.example.com/page/1/name/abc/city/la www.example.com/page/1/ And want to
I have different URLS and different querys. i.e. I have mysite.com/login.php?u=user&pass=pass i want to

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.