Closed Tuckie closed 9 years ago
I currently have a file named contact.html & have directory indexes turned on.
In order to map over from my old site's URL, I've added 'alias: contact.html' to the frontmatter.
All of the files build just fine, the problem is I cannot link to the regular contact page, as the alias overwrites the @_lookup_by_path hash.
Any ideas as to how I can make this work?
What happens when you do <%= link_to "Contact", '/contact' %> and/or <%= link_to "Contact", '/contact.html' %>?
<%= link_to "Contact", '/contact' %>
<%= link_to "Contact", '/contact.html' %>
I'm just going to handle these odd cases with a 301 in apache -- thanks!
I currently have a file named contact.html & have directory indexes turned on.
In order to map over from my old site's URL, I've added 'alias: contact.html' to the frontmatter.
All of the files build just fine, the problem is I cannot link to the regular contact page, as the alias overwrites the @_lookup_by_path hash.
Any ideas as to how I can make this work?