• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Special redirection

 
Kacem Bel
Ranch Hand
Posts: 30
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,


I'm running a JEE6 application on JBoss AS6, i need to do some URL redirection in such way if a user type : www.mydomaine.com/username, he will be redirected to the profile of the user with the given "username",

the problem is that when you type the username after the domaine name, JBoss AS is thinking about it as an application context and it gives me a 404 resource not found...

is there any solution in JEE6 to accomplish this need ?

thanks in advance


regards
 
Kacem Bel
Ranch Hand
Posts: 30
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I can take any suggestions even if it's not in the JEE6
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you need to run your web app as the ROOT web app.

Alternatively, if there's an Apache in front of JBoss, this is something that the mod_rewrite module is perfect for.
 
Kacem Bel
Ranch Hand
Posts: 30
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,


Hmm i see, i think i will go for mod_rewrite, thanks for the tips ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic