title: How To Rewriterules PHP with Htaccess LIKE Wordpress
body: <p>I will make site like wordpress, multiple rewrite rule but on htaccess file is very simple. ex:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /wordpress/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /wordpress/index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>If i see this rule is simple, but how logic on PHP file? I mean, if i use this php code</p>
  
  <pre><code>&lt;?php
  if(isset($_GET['page'] AND $_GET['page']=="profil")
  {
      echo "example";
  }
  elseif(isset($_GET['page']) AND $_GET['page']=="news" AND isset($_GET['p']))
  {
      echo "This is $_GET[p]";
  }
  ?&gt;
  </code></pre>
  
  <p>And with htaccesslike here</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteBase /MyTest/
  RewriteRule ^profil\.html$ index.php?page=profil [L]
  RewriteRule ^site-([0-9]+)\.html$ index.php?page=news&amp;p=$1 [L]
  &lt;/Ifmodule&gt;
  </code></pre>
  
  <p>But this is not mass rewrite like wordpress, please help me to rewrite rule like WORDPRESS logic.</p>