title: .htaccess file to redirect all pages except the wp-admin dashboard
body: <p>I have redirected the all pages of my wp site from .php extension to /
  For example, I am redirect pages such as example.com/about-us.php to  example.com/about-us/ but, It is also redirecting my example.com/wp-admin dashboard page which I don't want to redirect.How can I prevent it from redirecting? Here is my .htaccess code.</p>
  
  <pre><code>Options +FollowSymLinks -MultiViews
  RewriteEngine On
  RewriteBase /
  
  # redirect to .php-less link if requested directly
  RewriteCond %{THE_REQUEST} ^[A-Z]+\s.+\.php\sHTTP/.+
  RewriteRule ^(.+)\.php $1 [R=301,L]
  </code></pre>