diff --git a/www/.htaccess b/www/.htaccess index bc0e829539..caa57dfa89 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -66,7 +66,7 @@ redirectmatch 301 "^/cli-reference/.*$" /python-openstackclient/latest/ # Redirects from service-type to code-name {% for project in projects -%} -{%- if project.type == 'service' and project.service_type %} +{%- if project.type == 'service' and project.service_type and (project.service_type|lower != project.name) %} redirectmatch 302 "^/{{project.service_type|lower}}/.*$" /{{project.name}}/latest/ {%- endif %} {%- endfor %}