There are three machines - 1. Server - where application is deployed. Call it Machine1. 2. Second Machine where some files are stored. Call it ABC machine. 3. Machine from which I am accessing the application deployed on Machine1.
Lets say, http://testapplication.com:8080/pagedirectory/viewCart.php
On viewCart.php there are some link displayed like \\ABC\Folder1\file.xml
. If I access this path directly by typing or copying to browser, it works and I am able to see file. But If i click on web page, it doesn't open and gives error - The requested URL /pagedirectory/\\ABC\Folder1\file.xml was not found on this server.
If I bring mouse over this link, in the status bar at the bottom of browser, I see
http://testapplication.com:8080/pagedirectory/\\ABC\Folder1\file.xml
So, it seems that it adds base directory from where page is invoked to all the links and hence throws error.
Logs says Found %2f (encoded '/') in URI (decoded = '/somepath')...returning 404 referer
in apache logs when I try to click on the above link displayed on the page from my machine. If I access the application on the machine where its hosted, it just works perfect without issues. So what am I doing wrong? I saw in some posts to use AllowEncodedSlashes On
but not sure as where to put them and I am not using any virtual hosts.
Please help !!.