![]() |
Redirect direct link to image to a page containing the image?
What are best ways to achieve this on apache and nginx? Anyone knows?
|
Best way is to create url rewrite.
Rewrite all .jpg .png .gif or any other formats ur using to the page. The page should somwhow contain img name. For example yoursite.com/someimg.png to yoursite.com/custompage/someimg.png. In the custom page url you make rewrite that everything after custompage/ goes into get parameter which is the path to the img and tgen in ur prog. Lng get the parameter and display img. Ofc u beed to prevent loops and exclude css images. If u cant code if urself send me an email and I can do it for you. |
Right. I will try tonight. If I do not manage, I will hit you up. Thanks!
|
All times are GMT -7. The time now is 09:29 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123