Forum Moderators: phranque
The situation: I posted a popular media content directly as a swf as I was creating it to a few close friends and family, but the buzz has grown from there. So, I'd like to take this visitor magnet and invite them to view the rest of my php-driven site as well. Is a change in the swf itself? .htaccess? Is there a "301 handler" in php/apache like in IIS?
The solution couldn't be simpler: in order to redirect a specific url (pointing to any media type-- it's all requests at this point) in apache, I modified the .htaccess file adding this line:
RedirectPermanent /videoplayer.swf http:[i]//www.mydomain.com/[/i]videoplayer.php
where gone.swf is the name of the document that moved. My only issue now is that videoplayer.swf is the actual name of the player! haha. I'll just rename within.
Thanks for your interest.