0

I would like to www.example.com/test.jsp as www.example.com/test.

URL rewriting and so on should be too slow. Are there any alternatives? For example, maybe using the jsp files or only servlets when they work with java?

I'm looking for good solution in terms of performance and for the google ranking. The website has 200 pages and grows, so I can't do it manually for every page.

I googled but I didn't find a good answer.

Martin Tournoij
  • 26,737
  • 24
  • 105
  • 146
user3688653
  • 85
  • 1
  • 7
  • 2
    Actually, *big players* have enough of junior developers to do it manually ;) – Everv0id Mar 01 '15 at 22:09
  • *" I can't do it manually for every page"* -> This is why you script this sort of stuff :-) You can just create a script that generates these pages, and you run this every time you add a new page. – Martin Tournoij Mar 06 '15 at 18:42

2 Answers2

0

Can't believe you wrote a website with 200+ separate jsp pages. Consider changing site architecture, for example if you have online store with many pages of the same type, you could write only one jsp content page as template and use RESTful architecture to build real page content.

Everv0id
  • 1,862
  • 3
  • 25
  • 47
0

In the nginx configuration, you can make a rewrite of the url when you do the proxy pass