rewrite URL for PUT request
Posted
by benjisail
on Stack Overflow
See other posts from Stack Overflow
or by benjisail
Published on 2010-05-15T02:51:50Z
Indexed on
2010/05/15
2:54 UTC
Read the original article
Hit count: 451
Hi,
I changed the way my URL are working on my server.
It is now www.myserver.com/service
instead of www.myserver.com/test/service
I have added a RedirectMatch 301 to my Apache conf file to redirect any access to www.myserver.com/test
to www.myserver.com/
.
I am receiving file to this server via an HTTP PUT at this URL for example :
www.myserver.com/test/service/put/myfile.xml
The server sending the file don't handle the 301 HTTP status code so the files didn't arrived anymore.
Is there a way to rewrite the URL when it is a PUT Request in order to don't miss any file?
Thanks,
Benjamin
© Stack Overflow or respective owner