My website uses Appgini to search a database containing links to locally stored PDFs that are not in the mySQL database. When I try it on my localhost, everything works fine. When I installed it on a web server, the same links to the local PDFs stored in the same relative folder location on the server, I get a 404 error. I tried all different variations in the link address and none work. I suspect a permission problem, but don't know what it is. Does anyone have any suggestions?
Thanks,
Dave
Access to local content not in mySQL
Re: Access to local content not in mySQL
404 is a "not found" error which suggests the path to your PDF's is incorrect on the web server version - rather than a permissions problem.
Compare the relative URL to a particular PDF document on your local machine to that same document on the web server version. Perhaps even a preceding "/" causing the problem?
What is an example of the URL of the PDF with the 404 error? I presume you have uploaded the same PDF's to the web server and are trying to link to those documents on the web server rather than linking to a local file on your local machine via the web server URL - which is not so straight forward?
Compare the relative URL to a particular PDF document on your local machine to that same document on the web server version. Perhaps even a preceding "/" causing the problem?
What is an example of the URL of the PDF with the 404 error? I presume you have uploaded the same PDF's to the web server and are trying to link to those documents on the web server rather than linking to a local file on your local machine via the web server URL - which is not so straight forward?
Re: Access to local content not in mySQL
PB,
You were right. That was my first assumption, but all variations I tried didn't work. So, with your advice, I went back to look at the links and realized that I had some caps in the directory path that were not in the actual directory name, removed them and it works. I didn't realize that the directory path had to match upper case/lower case.
Thanks for putting me back on the right path (pun intended).
Dave
You were right. That was my first assumption, but all variations I tried didn't work. So, with your advice, I went back to look at the links and realized that I had some caps in the directory path that were not in the actual directory name, removed them and it works. I didn't realize that the directory path had to match upper case/lower case.
Thanks for putting me back on the right path (pun intended).
Dave