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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:33:17+00:00 2026-06-18T04:33:17+00:00

I am using two Domains which one of them is the Main Domain (

  • 0

I am using two Domains which one of them is the Main Domain (http://www.domain.com) and the second is a Domain to shorten URL’s (http://doma.in)

Forwards should be like this

http://domain.com -> http://www.domain.com

RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

http:// doma.in -> http:// www. domain.com

RewriteCond %{HTTP_HOST} ^doma.in [NC]
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

http://sub.domain.com -> http://sub.domain.com (no configuration needed?!)

and now the important one

http://doma.in/VC7s98X -> should forward to its target without to be converted to http:// www.domain.com

I dont know how I can do this part.

  • 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-06-18T04:33:18+00:00Added an answer on June 18, 2026 at 4:33 am

    Your second set of rules matches everything ((.*)) on the domain doma.in. To only match the bare domain without any trailing path, change the rule as follows:

    RewriteCond %{HTTP_HOST} ^doma.in [NC]
    RewriteRule ^/?$ http://www.domain.com/$1 [R=301,L]
    

    That takes care of http://doma.in/VC7s98X not redirecting to http://www.domain.com. I’m assuming you have something in place to take care of http://doma.in/VC7s98X forwarding to its intended target … if you’re asking for help with that part, that’s a much bigger question.

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

Sidebar

Related Questions

I am using two different scripts on one page and when I call them
I've two domain classes which are bonded with a bidirectional one-to-one relationship to each
I am using two jQuery scripts. One is for controlling the drop down navigation
I am using two different perspectives in Eclipse PyDev. One is for normal development,
I am using two shared hosting companies, I want to install thebuggenie in one
The Issue We have two sites, one domain, we want to setup a virtual
i recently asked question which was closed down linked here. https://stackoverflow.com/questions/3827349/how-to-use-one-openid-across-multiple-domains-closed I did not
I Using Two Table User And Location In User Table I having LocationId And
I am using two button s Date and Time .They are working well .
I'm using two different TapGestureRecognizer to handle both single and double tap on screen.

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.