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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:55:59+00:00 2026-06-04T04:55:59+00:00

I have been tying to get the site redirection to work but I keep

  • 0

I have been tying to get the site redirection to work but I keep on getting an internal server error

Here is what I need if the url is not:

domain1/content/newzealand/mpc/mpc_newzealand_website/en/home_mpc/van******

or:

domain1/content/newzealand/mpc/mpc_newzealand_website/en/home_mpc/truck*****

then redirect domain2

****** = means anything goes (wildcard)

domain1 = http://www2.mydomain.com

domain2 = http://www.mydomain.com

This is what I have at present but like I said it does not work.

Options +FollowSymLinks
RewriteEngine On
RewriteCond !domain1/content/newzealand/mpc/mpc_newzealand_website/en/home_mpc/van.*
RewriteCond !domain1/content/newzealand/mpc/mpc_newzealand_website/en/home_mpc/truck.*
RewriteRule .* domain2 [R=301,L]
  • 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-04T04:56:01+00:00Added an answer on June 4, 2026 at 4:56 am

    Try this:

    RewriteCond %{HTTP_HOST} ^www2.mydomain.com
    RewriteCond %{REQUEST_URI} !content/newzealand/mpc/mpc_newzealand_website/en/home_mpc/van.*
    RewriteCond %{REQUEST_URI} !content/newzealand/mpc/mpc_newzealand_website/en/home_mpc/truck.*
    RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
    

    Remove the $1 from the last line if you only want them to be redirected to http://www.mydomain.com and not to any other page within it depending on the request.

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

Sidebar

Related Questions

I have been trying to get a spring MVC test application to work. Here
I've been trying to get X-FACEBOOK-PLATFORM to work for a while. I keep getting
I have been trying to get nServiceBus to work with Ninject 2.0 as the
I have been trying to get this to work correctly and I think I
I have been trying to get this jsfiddle to work. So far without luck.
well I have been trying to get Nivo Slider to work almost all day.
I have been trying to get namespaces to work with backbone.js for the last
I've been trying to get mobile_tools for Drupal 7 to work but it appears
I have been trying to create a torrent site but I'm stuck with the
I have been trying to get my site, when a visitor goes to .co.uk

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.