title: Remove category in WordPress url
body: <p>I have a WordPress blog with posts that has categories, this could be an example of my url:</p>
  
  <pre><code>www.example.it
  </code></pre>
  
  <p>The url for my post is now:</p>
  
  <pre><code>www.example.it/sample-post
  </code></pre>
  
  <p>The url for my category list of posts is now:</p>
  
  <pre><code>www.example.it/category/my-category
  </code></pre>
  
  <p>I would like my urls like this:</p>
  
  <pre><code>wwww.example.it/sample-post (for posts)
  
  www.example.it/my-category (for categories)
  </code></pre>
  
  <p>After googled I founded this solution that I tried:</p>
  
  <pre><code>Go to Setting &gt; Permalinks
  Select Custom Structure
  Add /%category%/%postname%/ after your domain
  Change Category Base to period/dot.
  </code></pre>
  
  <p>In this way the category url is correct:</p>
  
  <pre><code>www.example.it/my-category
  </code></pre>
  
  <p>but post url is not:</p>
  
  <pre><code>www.example/my-category/sample-post
  </code></pre>
  
  <p>What could I change for get the url like I want?</p>