is there way redirect conditionally on http request method/verb? want redirect propfind requests document root, that:
propfind / http/1.1
is redirected /myapp/carddav/, but
get / http/1.1
is handled normally. reason need because carddav implementation in os x address book expects able contact carddav server @ /, , i'm running @ /myapp/carddav/ tomcat.
ideally, done .htaccess file user drop web server document root, rather modifying httpd.conf file, live either approach.
i figured out. added end of httpd.conf file:
rewriteengine on rewritecond %{request_method} ^propfind$ rewriterule ^/$ /myapp/carddav/ [r,l]
Comments
Post a Comment