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

  • Home
  • SEARCH
  • 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 6031791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:14:15+00:00 2026-05-23T05:14:15+00:00

I recently created a new site on a different domain. I need to redirect

  • 0

I recently created a new site on a different domain. I need to redirect the index.html of the old domain to the index of the new domain.

Usually this would not be a problem, but the old domain is the root domain of the server, the new one is an add on. So the following line would cause a redirect loop because it redirects a.com/index.html and b.com/index.html to b.com/index.html.

Redirect 301 /index.html http://b.com/

Is there a way of doing something like this?

Redirect 301 http://a.com/index.html http://b.com/

TL;DR How can I redirect index.html on one domain to another domain without it cascading and causing a loop because the other domain is a add on domain (i.e. in the same folder therefor under the law of the same .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-23T05:14:16+00:00Added an answer on May 23, 2026 at 5:14 am

    You can try mod_rewrite for more flexibility with the code like this:

    Options +FollowSymlinks -MultiViews
    RewriteEngine on
    
    # for HTTP
    RewriteCond %{HTTP_HOST} ^a\.com$ [NC]
    RewriteCond %{SERVER_PORT} =80
    RewriteRule ^(index\.html)$ http://b.com/$1 [R=301,L,NC]
    
    # for HTTPS
    RewriteCond %{HTTP_HOST} ^a\.com$ [NC]
    RewriteCond %{SERVER_PORT} =443
    RewriteRule ^(index\.html)$ https://b.com/$1 [R=301,L,NC]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently created a new google account and registered a new domain for google
I get this error recently, after I migrated my site to a new server
i´ve recently created a WCF-Service and would like to consume it with a Silverlight
Recently, Google has created a new Search API that you can integrate into your
I've recently set up an ASP.net site (not using MVC.net) to use URL Routing
I have a site I recently upgraded. The old site had a calendar that
I recently created a new template page, I put the obligatory <?php /* Template
I'm rather new to Groovy, and recently created a canned message using a Map
I've recently created several custom post types in a wordpress site, with the code
I have recently created a new dropdown menu for an existing website purely with

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.