rewrite file to http://domain.com/media.swf

Discussion in 'Apache' started by nservices, Jun 9, 2009.

  1. #1
    Hi,
    i have website with many directory and sub-directory's
    and in my header.phtml i have link to media.swf
    and its work only i am in the root
    and am go to some directory or sub-directory
    its search the media.swf in this directory even that i create
    can i make some htaccess rewrite that call media.swf from root directory, no care where am in the website ?

    Best Regards,
    Nservices.
     
    nservices, Jun 9, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteEngine  on
    RewriteCond    %{REQUEST_FILENAME}  media.swf
    RewriteRule ^(.*)$  http://mydomain.com/media.swf [L]       
    Code (markup):
     
    vasyl, Jun 9, 2009 IP