Forum Moderators: phranque

Message Too Old, No Replies

need help rewriting my .swf extension files

I need to 301 redirect my swf files to certain subdirectory.

         

zabalex

5:05 am on Oct 27, 2011 (gmt 0)

10+ Year Member



Hello,

I'm looking for help to redirect my swf file.
I try the following:

RewriteRule http://www.site.com/abc/old.swf http://www.site.com/flash_category/flash.html [L,R=301]


But for some reason it does not work.
If I have swf file, .htaccess is ignored, and swf file is loaded through the browser. If I try renaming the file into something else, I get error message on my site.

Please, help.

lucy24

6:27 am on Oct 27, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



[httpd.apache.org...]

# When using the rewrite engine in .htaccess files the per-directory prefix (which always is the same for a specific directory) is automatically removed for the RewriteRule pattern matching and automatically added after any relative (not starting with a slash or protocol name) substitution encounters the end of a rule set. See the RewriteBase directive for more information regarding what prefix will be added back to relative substitions.
# If you wish to match against the full URL-path in a per-directory (htaccess) RewriteRule, use the %{REQUEST_URI} variable in a RewriteCond.


Bookmark the page.