title: Getting value with htaccess and pagination for root
body: <p>This url</p>
  
  <pre><code>example.com/videos/load.php?cat=video-category
  </code></pre>
  
  <p>would become</p>
  
  <pre><code>example.com/videos/video-category
  </code></pre>
  
  <p>Also, there is pagination &amp; limit url</p>
  
  <pre><code>example.com/videos/load.php?cat=video-category&amp;p=2&amp;limit=20
  </code></pre>
  
  <p>it would become</p>
  
  <pre><code>example.com/videos/video-category?p=2&amp;limit=20
  </code></pre>
  
  <p>(this links also work)</p>
  
  <pre><code>example.com/videos/video-category?p=2
  example.com/videos/video-category?limit=20
  </code></pre>
  
  <p>Also, there is another root url</p>
  
  <pre><code>example.com/videos/load.php?cat=video-category&amp;name=video-name
  </code></pre>
  
  <p>it would become</p>
  
  <pre><code>example.com/videos/video-category/video-name
  </code></pre>
  
  <p>Also, there is pagination &amp; limit url</p>
  
  <pre><code>example.com/videos/load.php?cat=video-category&amp;name=video-name&amp;p=2&amp;limit=20
  </code></pre>
  
  <p>And it would become</p>
  
  <pre><code>example.com/videos/video-category/video-name?p=2&amp;limit=20
  </code></pre>
  
  <p>(this links also work)</p>
  
  <pre><code>example.com/videos/video-category/video-name?p=2
  example.com/videos/video-category/video-name?limit=20
  </code></pre>
  
  <p>Here is my htaccess (into <code>videos</code> folder)</p>
  
  <pre><code>Options +FollowSymLinks
  
  RewriteEngine on
  RewriteBase /videos/
  
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,NE,L]
  
  RewriteCond %{THE_REQUEST} \ /+videos/load\.php\?cat=([^&amp;\ ]+)&amp;?([^\ ]*)
  RewriteRule ^ %1?%2 [L,R]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^/]+)/?$ load.php?cat=$1 [L,QSA]
  </code></pre>
  
  <p>how to do this.. plz help me.. thanks..</p>