I need to redirect 2 similar path to same webpage, eshttp://www.domain.com/foo --> http://www.domain.com/okhttp://www.domain.com/foo/bar --> http://www.domain.com/okI have this in .htaccess:Redirect 301 /foo http://www.domain.com/okRedirect 301 /foo/bar http://www.domain.com/okIf I go to http://www.domain.com/foo the redirect works, if I go to http://www.domain.com/foo/bar, I have http://www.domain.com/ok/bar and it doesn't work.How can resolve this?
Apache redirect 301 parent directory don't work
apache httpd