I have a file that can be reached using multiple paths:
http://mydomain.com/portal1/movie.swf
http://mydomain.com/portal2/movie.swf
http://mydomain.com/portal1/substep/movie.swf
etc.
I want a rewrite rule to get this specific file from the following path:
How can I do that?
in .htaccess in your main folder:
RewriteRule ^portal.*movie\.swf$ /movie.swf [L]
(backlash before the dot added after Gumbos comment. +1)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.