Skip to content

Commit

Permalink
Rewrite /perldoc/Foo::Bar in mcpan.org redirects.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 19, 2015
1 parent 391b6ef commit a9a8764
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/metacpan/templates/web/metacpan-sco/rewrite.erb
Expand Up @@ -3,6 +3,7 @@
rewrite ^/search$ https://metacpan.org/search?q=$query?;
}

rewrite ^/perldoc/(.+) https://metacpan.org/module/$1;
rewrite ^/perldoc$ https://metacpan.org/module/$args?;
rewrite ^/\~([^/]+)/([^/]+)/?$ https://metacpan.org/release/$1/$2;
rewrite ^/\~([^/]+)/([^/]+)/(.+)$ https://metacpan.org/module/$1/$2/$3;
Expand Down

0 comments on commit a9a8764

Please sign in to comment.