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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:07:50+00:00 2026-06-02T22:07:50+00:00

I usually program that in Django but it makes more sense to do it

  • 0

I usually program that in Django but it makes more sense to do it in Apache. I need every request to whatever domain that comes to port 80 to get redirected to another domain (on port 80) but requests coming to any other port should still come in. It must not be a permanent redirect. How would I do that?

  • 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-02T22:07:52+00:00Added an answer on June 2, 2026 at 10:07 pm

    Since I set my virtual host in Apache to listen to port 80, I don’t need to tell the redirection directive to listen to that port so I just need to add that to the virtual host listening to port 80:

    RewriteEngine on
    RewriteRule ^$ http://other-domain.com/ [R=302,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written PLSQL program that generates table having usually more than 200 columns.
I usually program in C# but am trying to do a bit of C++
I usually program in C++, but for school i have to do a project
My scraping program usually works, but it occassionally gets a HTTP 400 error from
We have a program that displays map data (think Google Maps, but with much
I'm working on a program that is using a pipe and forks and need
I am creating a program that allows you to paste text but it will
I'm working on a C# windows program with Visual Studio 2008. Usually, I work
So I usually run my programs through Eclipse but I'm not allowed to use
Usually I was doing something like that (just a example): using (Stream xmlStream =

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.