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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -