Forum Moderators: phranque

Message Too Old, No Replies

.htaccess error - please check my file

redirect all request of .swf files to somefile.php

         

kentdeskman

8:35 am on Mar 11, 2006 (gmt 0)



I have these code got errors
Code:

<IfModule mod_rewrite.c>
RewriteEngine on
^/(.*)\.SM([a-fA-F0-9]{32})\.swf$ /securemedia.php?file=$1&key=$2
</IfModule>

I think this to redirect all access to .swf file to /securemedia.php. Can someone check this for me .. I dont have any knowledge about .htaccess usage

jdMorgan

6:36 pm on Mar 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




RewriteEngine on
RewriteRule ^/(.*)\.SM([a-f0-9]{32})\.swf$ /securemedia.php?file=$1&key=$2 [NC,L]

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim