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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:01:45+00:00 2026-05-25T01:01:45+00:00

An external server (I’ll call it sub.origin.edu) redirects all traffic to my webpage. I

  • 0

An external server (I’ll call it “sub.origin.edu”) redirects all traffic to my webpage. I want to take all traffic from this host, and redirect it to a different site (which I’ll call “http://foo.target.edu/board/”).

My .htaccess file is:

 RewriteEngine On
 RewriteCond     ${HTTP_HOST}    sub\.origin\.edu [NC]
 RewriteRule     ^(.*)$  http://foo.target.edu/board/ [R=302]

This doesn’t seem to be working. I’ve confirmed (using PHP) that the host is indeed sub.origin.edu, and the .htaccess file is in the right directory, but this rule just doesn’t come into effect. Any suggestions? Thanks.

(If I remove the RewriteCond, the redirect happens, so I can confirm that everything but the rewrite condition is working.)

  • 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-25T01:01:47+00:00Added an answer on May 25, 2026 at 1:01 am

    Use this:

    RewriteEngine On
    RewriteCond     %{HTTP_HOST}   sub\.origin\.edu [NC]
    RewriteRule     ^(.*)$  http://foo.target.edu/board$1 [R=302]
    

    You used the wrong substition character ($ instead of %)

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

Sidebar

Related Questions

I got an unicode string from an external server like this: 005400610020007400650020007400ED0020007400FA0020003F0020003A0029 and I
I'm loading an Iframe from an External server of mine onto my webpage, and
I want to save files from an external server into a folder on my
I want my app to receive notifications from an external server, like Urban Airship
I want to import data from external server in my GridPanel. I've tried with
I am using an AJAX call to access some resource from external server. But
I am ftp'ing files from an external server, then deleting them on the external
I'd like to load a font from an external server and once is loaded
I have a UIWebView which loads videos from an external server. The code seems
I'm making in house application that download data via xml files from external server.

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.