java - how is it possible to return different responses of your server based on URL -


lets have 2 urls points same server, , want tell users use 1 of urls no longer supported. best way it? have jetty application server , our server code written in java.

redirect old 1 new one, 301 moved permanently status code. transparent, standard way of doing.

if want tell users not use it, that: return page message saying not use url anymore, , add link new url in page.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -