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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:24:00+00:00 2026-05-27T13:24:00+00:00

I have a multisite with drupal, I created a site which at first should

  • 0

I have a multisite with drupal, I created a site which at first should be accessible in multiple ways (subdomains and paths), but now I want keep just one of them; so I whould redirect all the others. Right now I have:

aaa.domain.com/

bbb.domain.com/

domain.com/aaa/

domain.com/bbb/

http://www.domain.com/aaa/

http://www.domain.com/bbb/

And I want to redirect all of them to http://www.domain.com/bbb/

I tried to write:

RewriteCond %{HTTP_HOST} ^aaa.domain.com$ [OR]<BR>
RewriteCond %{HTTP_HOST} ^bbb.domain.com$ [OR]<BR>
RewriteCond %{HTTP_HOST} ^www.domain.com\/aaa$ [OR]<BR>
RewriteRule ^/?$ "http\:\/\/www\.domain\.com\/bbb\/" [R=302,L]

I will use 302 and no 301 until it work as expected.

If I entern aaa.domain.com it works as expected, but if I enter

http://aaa.domain.com/page/1

it don’t work

I have read anything I can about htaccess, but I am missing something.

Thanks

  • 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-27T13:24:00+00:00Added an answer on May 27, 2026 at 1:24 pm

    Add the following to your .htaccess file in the root of your domain.com site.

    RewriteEngine On
    RewriteBase /
    
    #if request is not on  www.domain.com
    RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
    #and it is not for a folder starting with /bbb/
    RewriteCond %{REQUEST_URI} !^/bbb/ [NC]
    #redirect to www.domain.com/bbb/
    RewriteRule .* http://www.domain.com/bbb/ [L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this site which uses multisite manager for minisites. The issue i am
I have a multi-site Drupal-6 installation containing websites of different customers. On each site,
im gonna install a drupal multisite behavior: common codebase and one database per site.
I want to make a community based site, which is Drupal's strength. However I
I am trying to setup drupal to host multiple sites which will not effect
Events till now We have a CC 7.1.2.2, multisite setup where we do deliveries
I'm sure this should be obvious, but how do i have a multiline static
I have a multisite drupal instalation. I have one module used in a specific
I have seen various questions on multi-site and multi-host Django, including subdomains and specific
i want to have another drupal-site in a subdirectory using multisites. Assuming I have

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.