Htaccess Links Rewrite

It is a simple .htaccess mod_rewrite project. I want to rewrite the following kinds of link on my site.

1. Youtube images.

Example: http://i1.ytimg.com/vi/LqPXCu6C8WY/default.jpg

Rewrite: http://mysite.com/img/randomnumbersandletters.jpg

2. Youtube video urls.

Example: http://www.youtube.com/watch?v=Xpv31O0WJgA

Rewrite: http://mysite.com/videos/randomnumbersandletters

3. Merchant product images.

Example: http://img3.prosperent.com/images/75×75/akcdn.esse…

Leave a Reply

Your email address will not be published. Required fields are marked *