Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

how to redirect the url

Hi,
 I have following application URL (say url1) which the user enter in browser like
http://localhost:9080/xyz/testapp

I need to redirect it to following  url ( say url2) to bring up the application
http://localhost:9080/xyz/testapp/testapp.do

How can i redirect the url1 to url2 with minimum code change. Ours is struts application.  Any links, resources, ideas, sample code highly appreciated. Thanks in advance.


SOLUTION
Avatar of Richard Quadling
Richard Quadling
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mick Barry
a rewrite rule will do that for you

Avatar of gudii9

ASKER

how to write rewrite rule? is that is same as mod_rewrite rule done by webserver? Please advise
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

Thank you very much