• I develop software for camera clubs. My application creates an HTML page and uses FTP to upload it to the club’s website using FTP credentials supplied by the club.
    This works well for “ordinary” websites, but I have been unable to find where to upload the page if the club uses WordPress so that they can have a link on one of their pages to the new page.
    I have tried creating a folder in public_html (say, “Test” but a URL of the form
    www.website/public_html/Test/mypage.htm gives a page in WordPress format saying

    Homme>404 Not Found
    This page could not be found!
    We are sorry. But the page you are looking for is not available.
    Perhaps you can try a new search.

    Where should I upload the page?

    • This topic was modified 2 years, 11 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • That should work on most servers

    BUT you don’t need public_html as that is already www.example.com/

    So https://example.com/Test/mypage.htm

    But if not I suggest trying .html rather than .htm and also try and avoid upper case as some servers don’t handle that too well.

    btw the WordPress way would be to use wp-content/uploads

    E.g

    https://example.com/wp-content/uploads/results/compresults.html

    I do exactly this for a sports club race results page

    Thread Starter photocomp

    (@photocomp)

    Thanks for the reply – I’ve been trying to figure it out ever since

    I can upload my HTML page with Filezilla to xxx/public_html/mypage.html and then read it with xxx.mypage.html so thanks for the help with that.

    However if I use the renci.sftp client in my program I get a 1006 error…
    “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond”
    I use exaclly the same credentials in both cases. It seems to conneect on port 22 OK but then stop.

    Best to ask your host about that – not really anything related to WP

    I know nothing about renci.sftp but I did have an issue similar with SSH and it turned out to be fixed by different cyphers. Is there a verbose or debug mode you can put renci.sftp in to see more detailed errors ( not tha I would be able to help – but perhaps stackexchange would )

    Thread Starter photocomp

    (@photocomp)

    Thanks anyway – I’ve posted on Stackoverflow

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uploadint HTML page to site using WordPress’ is closed to new replies.