php - Pdf hyperlinks are not working in my localhost
one text
I have multiple pdf files in different webpages, when I test them in my localhost the webpage appears fine but when I click on the href links that directs to a pdf file nothing happens (here is the bar address : http://localhost/rootfolder/Centralafricanrepublic.html) However, when I open the same webpage directly from my computer (here the bar address is: file:///C:/xampp/htdocs/rootfolder/index.html) the pdf file works.
Please let me know what I am doing wrong for my pdf files not to appear in my local host?
N.B:
- I need to make sure that the pdf files work because I am planning to export my localhost database from phpmyadmin and import it to my live website.
- my apache server is running.
- all my pdf hyperlinks are written like this :
<a href= "C:\xampp\htdocs\rootfolder\Algeria\banking and finance law\Loi 90-10 relative ?� la monnaie et au cr?�dit.pdf" type="application/pdf" target="_blank">Loi n?�90-10 relative ?� la monnaie et au cr?�dit</a>
- I have more than 60 webpages that contains dozens of pdf files, I would really appreciate it if the solution is simple and wouldn't require to edit manually each page/pdf file.
Thank you in advance.
Source