title: php get path info with htaccess
body: <p>Here is my index.php file:</p>
  
  <pre><code>&lt;?php
  
  echo $_SERVER['PATH_INFO'];
  
  ?&gt;
  </code></pre>
  
  <p>Here is my htaccess file:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /something
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>If I input something/index.php/hello, the result whould be /hello<br/>
  But if I something/hello, it says that <br/>
  Undefined index: PATH_INFO in /Library/WebServer/Documents/xcart/index.php on line 3
  <br/>How can I get the same result?</p>