diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-19 09:08:03 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-19 09:08:03 +0000 |
commit | 7707075c4079009e3c86bcd5473152cf31098c0c (patch) | |
tree | 2b2aa42960254d3b139dd150b10974446ae90da2 | |
parent | Remove default symlink (diff) | |
download | gentoobrowse-7707075c4079009e3c86bcd5473152cf31098c0c.tar.bz2 gentoobrowse-7707075c4079009e3c86bcd5473152cf31098c0c.tar.xz gentoobrowse-7707075c4079009e3c86bcd5473152cf31098c0c.zip |
Add redirects for old page locations
-rw-r--r-- | gentoobrowse/.htaccess | 12 |
1 files changed, 12 insertions, 0 deletions
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 </Files> 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/ |