Well the rewrite valve should be able to do that, what did you try?
We tried to use these rules with JBossWEB:
RewriteRule ^/contextpath(.*) /contextpath$1 [L,QSA]
RewriteRule ^(.*) /contextpath$1 [L,QSA]
Could you suggest other rules for the correct rewriting, please?
Thank you so much!
RewriteRule ^(.*) /contextpath$1 [L]
First, thanks for your reply!
Without the first rule the html links on the generated html that contains the contextpath become /contextpath/contextpath/index.seam
So a menu link to the home page http://localhost:80/contextpath/index.seam will be converted to http://localhost:80/contextpath/contextpath/index.seam
QSA is necessary to attach the query parameters to the rewrited urls. ( http://localhost:80/contextpath/index.seam?cid=77&userId=12121 )
Ok I was a bit to fast in my first answer, sorry.
So what is wrong with the 2 rules?
The menu links (and other generated links) rendered like: http://localhost:80/contextpath/index.seam in the html source, and will be converted to http://localhost:80/contextpath/index.seam , because the first rewrite rule. These urls are remained the same, but I'd like to these urls appear without the contextpath (http://localhost:80/index.seam ) . So the rewrite rule does not remove the context path in these cases.
I am searching a way to solve this problem.
hm not sure what you mean...
Guessing: Some links are now