title: .htaccess image to web page redirect of sorts
body: <p>I think this can be done, though not sure, so I came here to find out from you experts. I researched extensively, but always get the opposite of what I want to do. I was wondering if someone types in the image file URL (on server side) into an address bar if that could be directed to its corresponding web page. </p>
  
  <p>For example:</p>
  
  <p>One types in yourdomain.com/wp-content/uploads/image-name.jpg and it's directed to yourdomain.com/print/image-name (w/o .jpg)</p>
  
  <p>So instead of one just seeing the image in a window, they will see the image, it's information and how to purchase it on my brand web site. </p>
  
  <p>If that is not possible or the file name doesn't match, can directly typed server side image file URLs redirect to my website galleries or home page? And where in .htaccess would this code be located? Above begin wordpress or not?</p>
  
  <p>If above Begin WP, will that interfere with this code that already exists? If so how would I exactly write it?</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{SERVER_PORT} 80
  RewriteRule ^(.*)$ https://www.sitename.com/$1 [R,L]
  </code></pre>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT: To clarify, my site being down has nothing to do with the help I received here. I upgraded my web host account and there was a glitch when they migrated it.</p>