I am trying to add a PDF document link on my Thankyou.html page for subscribers to download it.
I created a folder called 'download' under the domain name public_html folder and uploaded the PDF into that folder.
My first attempt was:
<a href="http://www.domainname.com/download .html>Click Here for Free Report</a>
Note I didn't have the space before .html I added it here because it doesn't display the question properly here in Yahoo if it's not there!
this displayed the 'click here for free report' on my thankyou page and when clicked on in preview mode opened a page that had parent directory and the pdf file name which could be clicked on an then opened the pdf.
I didn't want this though, I wanted the PDF to open directly after clicking 'click here for free report' on the thankyou page, so I tried this:
<a href="http://www.domainname.com/download /freereport .pdf>Click Here for Free Report</a>
when clicked on in preview mode it comes up with a 400 Bad Request error. Note again I didn't have the space before /freereport or .pdf I put in here so the full code would show up in Yahoo questions?
So where is the coding wrong? Should I set it up another way?
PS. the PDF name contains % and ! symbols - I don't know if that affects things. I also had it saved with file name with spaces between words and then tried it without spaces with capitals for each new word. Tried putting the PDF in the code in various ways...don't know if any of these things affect the coding or not?
I'd really appreciate an answer been banging my head around on this for a few hours and can't think of anything else to try!
I created a folder called 'download' under the domain name public_html folder and uploaded the PDF into that folder.
My first attempt was:
<a href="http://www.domainname.com/download .html>Click Here for Free Report</a>
Note I didn't have the space before .html I added it here because it doesn't display the question properly here in Yahoo if it's not there!
this displayed the 'click here for free report' on my thankyou page and when clicked on in preview mode opened a page that had parent directory and the pdf file name which could be clicked on an then opened the pdf.
I didn't want this though, I wanted the PDF to open directly after clicking 'click here for free report' on the thankyou page, so I tried this:
<a href="http://www.domainname.com/download /freereport .pdf>Click Here for Free Report</a>
when clicked on in preview mode it comes up with a 400 Bad Request error. Note again I didn't have the space before /freereport or .pdf I put in here so the full code would show up in Yahoo questions?
So where is the coding wrong? Should I set it up another way?
PS. the PDF name contains % and ! symbols - I don't know if that affects things. I also had it saved with file name with spaces between words and then tried it without spaces with capitals for each new word. Tried putting the PDF in the code in various ways...don't know if any of these things affect the coding or not?
I'd really appreciate an answer been banging my head around on this for a few hours and can't think of anything else to try!