title: Permalinks do not work on Wordpress + centos7
body: <p>I have installed WordPress on my local machine(Centos 7). It worked well without pretty URL.</p>
  
  <p>What I tried to get it work:</p>
  
  <ol>
  <li><p>set Allowoverride All in /etc/httpd/conf/httpd.con under line  and restarted the httpd service.</p></li>
  <li><p>Created .htaccess file in WordPress directory with following line of code:</p></li>
  </ol>
  
  <pre>
     &lt;IfModule mod_rewrite.c&gt;
         RewriteEngine On
         RewriteBase /
         RewriteRule ^index\.php$ - [L]
         RewriteCond %{REQUEST_FILENAME} !-f
         RewriteCond %{REQUEST_FILENAME} !-d
         RewriteRule . /rakesh/index.php [L]
     &lt;/IfModule&gt;
  </pre>
  
  <ol start="3">
  <li>Set permalinks to post name in WP backend settings > permalinks</li>
  </ol>
  
  <p>As a result i get "Not Found</p>
  
  <p>The requested URL /index.php was not found on this server."</p>
  
  <ol start="4">
  <li>I also tried to change permission on .htaccess file 777 and assigned to it Apache user by following command</li>
  </ol>
  
  <pre>
     sudo chown apache /var/www/html/wordpress/.htaccess
     sudo chmod 777/var/www/html/wordpress/.htaccess
  </pre>
  
  <p>.</p>