I am retiring a site and would like to display a message when anyone tries to access any page on the site EXCEPT for a couple of pages. Some pages have certain pageid parameters. So basically everything should redirect to /retired except for:
/testcode.jsp/search/*/codes/*/resources/blogs/*/status/*/wiki/article?pageid=178973-ghgh-98089/wiki/article?pageid=354973-aaaa-80879/wiki/article?pageid=334224-sada-20293/wiki/article?pageid=546665-qasq-34491
.htaccess? Or is this all in the server config? Do you have any existing directives? How you implement this can be dependent on your existing directives. For instance, are some of these URLs routed through afront-controller? I'd also question why you want to "redirect" to/retired, rather than serve a custom 404/410, since presumably you want to remove these pages from the index if the site is being "retired"? – MrWhite Apr 02 '18 at 19:51