From 7707075c4079009e3c86bcd5473152cf31098c0c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 19 Jan 2017 09:08:03 +0000 Subject: Add redirects for old page locations --- gentoobrowse/.htaccess | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gentoobrowse/.htaccess b/gentoobrowse/.htaccess index 98fadd2..ecad5b5 100644 --- a/gentoobrowse/.htaccess +++ b/gentoobrowse/.htaccess @@ -2,6 +2,18 @@ sethandler fcgid-script RewriteEngine on +RewriteCond %{REQUEST_URI} ^/package/(.*) +RewriteRule ^(.*) /packages/%1 [R=301,L] + +RewriteCond %{REQUEST_URI} ^/category/(.*) +RewriteRule ^(.*) /packages/%1 [R=301,L] + +RewriteCond %{REQUEST_URI} ^/browse +RewriteRule ^(.*) /packages [R=301,L] + +RewriteCond %{REQUEST_URI} ^/popular +RewriteRule ^(.*) /packages/popular [R=301,L] + RewriteCond %{REQUEST_URI} !^/css/ RewriteCond %{REQUEST_URI} !^/js/ RewriteCond %{REQUEST_URI} !^/img/ -- cgit v1.2.3