title: Rewrite image directory to another folder in server using htaccess
body: <p>I have images in </p>
  
  <pre><code>/home/crawler/scrapers/images/website
  </code></pre>
  
  <p>for example </p>
  
  <pre><code>/home/crawler/scrapers/images/website/1/img-name.jpg
  </code></pre>
  
  <p>My Apache root is at </p>
  
  <pre><code>/var/www/html
  </code></pre>
  
  <p>I have <code>.htaccess</code> in this folder with following content</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^/images/(.*)$ /home/crawler/scrapers/images/$1 [R,L]
  </code></pre>
  
  <p>My goal is to show images from the images folder as I mentioned above.</p>
  
  <pre><code>http://website.com/images/website/1/img-name.jpg   &gt;&gt;  /home/crawler/scrapers/images/website/1/img-name.jpg
  </code></pre>
  
  <p>Currently I am getting</p>
  
  <pre><code>Not Found
  
  The requested URL /home/crawler/scrapers/images/website/1/img-name.jpg was not found on this server.
  
  Apache/2.4.18 (Ubuntu) Server at IP Port 80
  </code></pre>
  
  <p><strong>PS:</strong> I confirm that hataccess is enabled.</p>