title: issue when using .htaccess to create a vanity URL when the php file is not in the root folder
body: <p>I’m having an issue using the .htaccess file to create a vanity URL.</p>
  
  <p>My .htaccess file is currently saved in my site’s root folder (mysite/.htaccess). The page that I am writing the vanity URL for is one level down (mysite/jobs/job.php).</p>
  
  <p>The code in my .htaccess file is:</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /mysite/jobs/job.php?job_id=$1
  </code></pre>
  
  <p>Within the mysite/jobs/job.php file, I have included the following code: </p>
  
  <pre><code>if(isset($_GET['job_id']) == true &amp;&amp; empty($_GET['job_id']) == false) {
      $job_id = $_GET['job_id'];
      echo $job_id;
  </code></pre>
  
  <p>}</p>
  
  <p>My problem is this: when I type in "http://localhost/mysite/jobs/1" into my browser, this echoes jobs/1, when I want it to echo 1 (i.e. the actual job id without “jobs/” at the beginning). Does anyone know how I can change the .htaccess file to achieve this without having to move the php file up one level?</p>