<%- if @location_path == '' -%> /"> AllowOverride FileInfo Indexes Options=All,MultiViews Order deny,allow Allow from all <%- else -%> AliasMatch ^/[a-z]{2}/<%=@location_path%>(/.+|/|)$ "<%=@directory%>/$1" Alias /<%=@location_path%> "<%=@directory%>/" /"> AllowOverride FileInfo Indexes Options=All,MultiViews Order deny,allow Allow from all <%- end -%>