title: Redirect category and subcategory SEO friendly
body: <p>I want to display my categories of my classified site as <code>sitename/Category/</code> and to display my sub-categories of my site as <code>sitename/Category/Subcategory/</code></p>
  
  <p>This is the detail page URL: <code>sitename/Category/Subcategory/abc.php</code></p>
  
  <p>My current .htaccess code:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^([^/\.]+)/$ subcategory.php?cat_nm=$1 [L]
    RewriteRule ^([^\.]+)/([^\.]+)/?$ /region.php?subct_nm=$2 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>The above code is partially work, but when I go to my admin page which is present in my root directory, it reads admin as a category name.</p>
  
  <p>I fail to go my admin page using this URL <code>http://sitename/admin/</code> and also there is a member folder inside my root, after user login goes to that <code>sitename/member/</code> it also have same problem.</p>