The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where do I put my pdf files?

Discussion in 'General Discussion' started by Tofngrs, Feb 13, 2013.

  1. Tofngrs

    Tofngrs Registered

    Joined:
    Feb 13, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I have a download page on my website to give free pdf files to my visitors. I made a separate folder for said files and uploaded them via filezilla but my links do not work. All I get is "nothing found, error 404. any ideas.
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is the directory for the PDF files in the public_html directory, or in the account's home directory? It needs to be in the public_html directory to be accessible on the Web.

    Also, double-check the paths in your page to make sure they point to the correct locations for the PDF files.

    Your hosting provider should be able to help you with this.
     
  3. Tofngrs

    Tofngrs Registered

    Joined:
    Feb 13, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I tried my hosting company but they couldn't help. I have several domains so I uploaded the file into the public_html/domainname The hosting company said the path was correct. I am kinda new to this stuff so I'm sure it is something I'm overlooking. I have tried putting the file into the wp_content folder and I have also tried making a seperate folder for the files.
    I think I'll delete them all and start from scratch.
    Should I upload to the particular website directory or just the general public_html directory
     
  4. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    262
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    With a wp-content folder, it sounds like you have wordpress running your site. You should be able to upload pdfs into the media library in wordpress and it'll provided you with a link or you can insert the link into a page via the wordpress interface.

    If you manually upload the files, it doesn't really matter where you upload them as long as the link matches where they are. Files uploaded into public_html like:

    public_html/file.pdf
    public_html/pdfs/file.pdf

    would then be found in the browser at

    /yourdomain.com/file.pdf
    /yourdomain.com/pdfs/file.pdf
     
Loading...

Share This Page