nginx - Redirect all subdirectories to the parent directory -
example case:
http://example.com/parent/any/subdirectorry/here http://example.com/parent/random http://example.com/parent/can/be/anything
i want of above showing content of
http://example.com/parent/
if there index.htm file in parent, instance; when visit first url should seeing index.htm file (with loaded dependencies).
i have looks it's working; sadly doens't allow page load dependencies since rewrites everything:
rewrite ^/parent/.+ /parent/index.html last;
any appreciated.
Comments
Post a Comment