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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:05:43+00:00 2026-06-09T15:05:43+00:00

I have a apache server, which applies mod_rewrite and mod_proxy based on a rewrite

  • 0

I have a apache server, which applies mod_rewrite and mod_proxy based on a rewrite mapping file. The user just accesses the server, and does not know that he is redirected to another server supplying the source files. Everything is handled by apache in background.

As I’d now like to have more complexe redirecting, I thought about some solution within java/jsf/servlet.

Can I achieve the same robust remapping of an url from a servlet?
If so, how could I start?

  • 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-09T15:05:45+00:00Added an answer on June 9, 2026 at 3:05 pm
    • A solution for redirecting from Java/servlet:

    If it’s on the same machine you can use forward:

    request.getRequestDispatcher("pathToNewServletOrJsp").forward(request, response);
    

    (with the relative path) and the URL will not change, otherwise you have to use sendRedirect:

    response.sendRedirect("pathToNewServletOrJsp");
    

    and in this case – the URL will change.

    • Another solution will be creating rules for 301 redirect in your
      .htaccess file.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the apache server installation I have a .conf file which forwards all requests
I have an Apache server running which hosts a php web application. This server
I have installed my PHP scripts which runs over Apache server in a Windows
I have an Apache server configured with several configuration files in which I declare
I have a public Apache server which needs to proxy to an internal Apache
I have an apache server on linux machine which listen at: http://:8080 it will
I have Apache Server, in which my website running, but there is some jsp
I have a web based application which server's content to authenticated users by interacting
I have a production server which uses Apache / FastCGI / DJango to serve
I installed XAMPP and have an apache server running. My files are located on

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.