Set multiple URLs to return 410 apache

cn flag

I've already set multiple urls to give 410 redirects

Redirect 410 "/example-url"

However I have to edit multiple files to achieve this for many others URLs, is there a more elegant solution where, for example my 3x conf files can source these URLs from a single .txt file and that way reduce the clutter inside the conf files itself?

I considered LocationMatch but these urls do not match in any case and I would have to adjust the regex each time a new url needs to be set to 410.

cn flag

I solved my issue, where I placed all my redirections inside this file


and then included them with

Include conf.d/gone_redirections.conf

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.