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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:37:45+00:00 2026-06-16T23:37:45+00:00

We have some trouble with getting a redirect within a .htaccess working as we

  • 0

We have some trouble with getting a redirect within a .htaccess working as we like. The issue is that we have 1 webroot for multiple websites. Now we want to setup a redirect rule for domain1 only.

Redirect 301 http://www.DOMAIN1.nl/aanbiedingen/2289/ http://www.DOMAIN1.nl/nederland/gelderland/

when calling http://www.DOMAIN1.nl/aanbiedingen/2289/ in the browser it ignore the rule.

changing the htaccess rule to:

Redirect 301 /aanbiedingen/2289/ http://www.DOMAIN1.nl/nederland/gelderland/

will trigger the redirect, but will trigger the rule also for DOMAIN2 and DOMAIN3.

Hopefully you can help me the let the redirect work as should.

  • 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-16T23:37:46+00:00Added an answer on June 16, 2026 at 11:37 pm

    This is done by checking that HTTP_HOST matches your domain before proceeding with the redirect.

    RewriteCond %{HTTP_HOST} ^www.DOMAIN1.nl$ [NC]
    RewriteRule ^aanbiedingen/2289/$ http://www.DOMAIN1.nl/nederland/gelderland/ [R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having some trouble getting the syntax right. I have a movie clip that
iI have some trouble getting sth like this to work in java: public class
I'm working on an iOS app and have had some trouble with getting photos
Having some trouble getting this right, I have a list of transaction that I
I am having some trouble getting an options menu working in Android. I have
I'm having some trouble getting my infowindow to have the size that I want.
Right now, I have some tooltip JavaScript that I'd like to run on every
I am having trouble getting the JSF annotations to work. I have spent some
I'm having some trouble getting personal contacts of some users I have in a
I have some trouble in getting Java to read the first character in a

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.