Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/templates/adblockplus.org.conf.erb

Issue 29596592: #4846 - Redirect non-matched requests to new redirects service (Closed) Base URL: https://hg1/infrastructure
Patch Set: leave out transport information Created Nov. 3, 2017, 1:22 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/templates/adblockplus.org.conf.erb
===================================================================
--- a/modules/web/templates/adblockplus.org.conf.erb
+++ b/modules/web/templates/adblockplus.org.conf.erb
@@ -354,7 +354,8 @@
if ($link = "")
{
- return 404;
+ # If there is no match in the legacy redirects, let the new redirect service handle it:
+ rewrite ^ $scheme://adblockplus.to/$arg_link/legacy redirect;
}
if (!-f "$document_root/$lang/$link")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld