title: Joomla SEF URLs with Nginx
body: <pre><code>Gentoo Linux 4.4.8-hardened
  Nginx 1.10.1
  MySQL 5.6.33
  PHP 5.6.26
  Joomla 1.5.26
  </code></pre>
  
  <p>Migration to latest Joomla is close to impossible because of the amount of custom components that have been written during 5 years.</p>
  
  <p>The problem is with URLs.</p>
  
  <p>Although we created menu items that link to specific pages, they still appear in index</p>
  
  <p>Example:</p>
  
  <p>normal link, created by menu, and this is the only link that should exist:</p>
  
  <pre><code>/delivery-install.html
  </code></pre>
  
  <p>but, this page is also accessible through these kinds of URLs:</p>
  
  <pre><code>/delivery-install
  /delivery-install/
  </code></pre>
  
  <p>Right now I'm trying to avoid it with 301 redirects, but I know that it's not the right thing to do.</p>
  
  <p>How to solve this problem?</p>