Simplify User Guide redirects

Instead of trying to catch all cases, use a fall back to redirect to the
main index page.

Change-Id: I413428bb1b93140d4a385f922f2cba6e0200fe6c
This commit is contained in:
Andreas Jaeger 2015-04-23 19:58:27 +02:00
parent bc3d7870ae
commit a70ea92a51

View File

@ -158,9 +158,10 @@ redirect 301 /user-guide-admin/content/admin_cli_manage_projects_users.html /use
redirect 301 /user-guide-admin/content/specify-host-to-boot-instances-on.html /user-guide-admin/adminuser/cli_nova_specify_host.html
redirect 301 /user-guide-admin/content/nova_cli_migrate_single.html /user-guide-admin/adminuser/cli_nova_migrate.html
# All the rest of the files should be a direct match, file name for file name,
# Or they are not high in pageview count.
# Since we don't have a direct match for all file, redirect to the index page.
redirectmatch 301 /user-guide/content/(.*) /user-guide/enduser/$1
redirectmatch 301 /user-guide-admin/content/(.*) /user-guide-admin/adminuser/$1
redirectmatch 301 /hot-guide/content/(.*) /user-guide/hot-guide/$1
redirectmatch 301 /user-guide/content/.*$ /user-guide/index.html
redirectmatch 301 /user-guide-admin/content/.* /user-guide-admin/index.html
# All these files should be a direct match, file name for file name.
redirectmatch 301 /hot-guide/content/.* /user-guide/hot-guide/$1