diff options
-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/ |