Answers.Body: <p>Are you getting the About template or the layout template it extends?</p>
  
  <p>In a test with a local site I have running, I was able to trigger a 404 for any bad requests by putting </p>
  
  <pre><code>{%  redirect 404 %}
  </code></pre>
  
  <p>inside the <code>main</code> block in the <code>_layout</code> template.</p>
  
  <p>This works in my case because that block is overridden on every request. If it's not, something has gone wrong and I need to exit out since the layout template should never render on its own.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-03T08:49:42.467Z
Answers.Text: I added {% if not entry | length %} as a conditional on the redirect and placed that in the _layout template. That worked a treat!
Answers.UserDisplayName: Emmanuel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-28T02:20:16.553Z
Answers.LastActivityDate: 2018-02-28T02:20:16.553Z
Answers.UserDisplayName: CraftQuest
Body: <p>I've come across an issue where typing the URL e.g www.sitename.com///about will still load the about template, but not fill the page with the content. Is this an issue for google finding the appropriate pages in google searches? And how can I get these pages to no longer exist or result in a redirect to the correct URL www.sitename.com/about?</p>
  
  <p>Thanks for any assistance </p>
  
Tags: <url><redirect><seo>
Title: Adding multiple slashes after the site URL breaks the current entry, but still loads the template
ThreadText: # Adding multiple slashes after the site URL breaks the current entry, but still loads the template
  
  (Asked by: username_0 on 2018-02-27)
  
  I've come across an issue where typing the URL e.g www.sitename.com///about will still load the about template, but not fill the page with the content. Is this an issue for google finding the appropriate pages in google searches? And how can I get these pages to no longer exist or result in a redirect to the correct URL www.sitename.com/about?
  
  Thanks for any assistance
  
  **Tags:** url, redirect, seo
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-02-28. Score: 1
  
  Are you getting the About template or the layout template it extends?
  
  In a test with a local site I have running, I was able to trigger a 404 for any bad requests by putting
  
  ```
  {%  redirect 404 %}
  
  ```
  
  inside the `main` block in the `_layout` template.
  
  This works in my case because that block is overridden on every request. If it's not, something has gone wrong and I need to exit out since the layout template should never render on its own.
  
  > **Comments:**
  > **username_0**: I added {% if not entry | length %} as a conditional on the redirect and placed that in the _layout template. That worked a treat!  
  
  ---
  
  