Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web application running in JBoss on I want users to be able to use the URL and have that redirected to in order to present company specific logos and names for each client.

Can I do this using the rewrite engine? and use Apache as the redirect to JBoss?

share|improve this question

migrated from Jul 27 '11 at 8:49

This question came from our site for professional and enthusiast programmers.

marked as duplicate by MadHatter, HBruijn, Ward, mdpc, voretaq7 Jul 8 '14 at 17:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

If you are using Apache, then give the following rewrite a try:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^/(.*)$$1 [R, 301]
share|improve this answer