I have used timthumb to resize images from external site. I would like rewrite url to security my site But I don't know how to do it with .htaccess and php
(1) htp://mydomain.com/timthumb.php?src=htp://any-images.jpg&h=70&w=70&zc=1
(2) htp://mydomain.com/70/70/aHR0cDovL2ltYWdlc2hhY2suY29tL2EvaW1nOTEyLzE4NTgvZ3Z
I used php encode base64 htp://any-images.jpg to aHR0cDovL2ltYWdlc2hhY2suY29tL2EvaW1nOTEyLzE4NTgvZ3Z
Now the question is: How to do rewrite from (1) to (2)?
http:/example.com/thumb/70/70/aHR0cD...instead of:http://example.com/70/70/aHR0cD...? Type of url e.g. 'thumb'. It will make the '.htaccess' rules easier and more reliable.