Reputation: 113
Hey i have currently got a project that needs me to watermark images
Here is the direct Link: http://zaramasonparty.teenbanter.net/uploads/1460220120945.jpg
Here is the watermarked Link: http://zaramasonparty.teenbanter.net/view.php?img=1460220120945.jpg
can i make the direct image link proxy to the watermarked one?
i have a .htaccess file in /uploads and i have tried
RewriteRule ^uploads/(.*)$ http://zaramasonparty.teenbanter.net/view.php?img=$1 [NC,P]
i have also tried doing the same htaccess in the root dir
Upvotes: 0
Views: 217
Reputation:
You don't need to do proxying, just a simple rewrite. Do this in your root .htaccess:
RewriteEngine on
RewriteRule ^uploads/(.*)$ view.php?img=$1 [NC]
Upvotes: 1