title: Wordpress permalink not working on aws
body: <p>I have spent 4-5 hours to sort it out but not able to solve it.</p>
  
  <p>I have setup my wordpress website on AWS.Everything is working file except the permalinks of wordpress.</p>
  
  <p>When permalinks are set to default pages/posts are working but not working with "%post-name%".</p>
  
  <p>I have tried almost all the things by searching over google but no success.</p>
  
  <p>I saw so many solutions all related to <strong>httpd.conf</strong> file but on my root there is no file httpd.conf neither no directory of http.</p>
  
  <p>I changed the following code in <strong>apache.conf</strong> file but still not working</p>
  
  <pre><code>&lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride All
      Require all denied
  &lt;/Directory&gt;
  
  &lt;Directory /var/www/&gt;
      Options Indexes FollowSymLinks
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Restarted apache again and again but no luck.</p>
  
  <p>Please help me guys.</p>
  
  <p>Thanks.</p>