• Resolved waigy

    (@waigy)


    I made a wordpress site in the wrong directory.

    I use byethost free hosting and have my own domain name so I am typing that below instead of the actual address.

    Going by my actual folder structure in ftp, the wordpress site is located in:

    https://www.myusername.byethost33.com/htdocs/wordpress

    But my website html files are located in : https://www.myusername.byethost33.com/mydomainname.com/htdocs/

    I have copied the same menu bar from my website into the wordpress site and I want to add links from my wordpress site to my html files.

    I have tried using ../../mydomainname.com/htdocs/webpage.html

    And a few different links by only coming up one folder level eg. ../ or with and without the htdocs/ but all of those have a 403 access denied error.

    If I try one of the above links it shows in the address bar as the correct address ie. https://www.myusername.byethost33.com/mydomainname.com/webpage.html

    But I always get a 403 error.

    What is the correct link from that wordpress folder to my html files?

Viewing 3 replies - 1 through 3 (of 3 total)
  • What is the correct link from that wordpress folder to my html files?

    This has absolutely nothing to do with WordPress. You’re simply mixing up the HTTP paths and ftp/file system paths!

    If your FTP structure is myusername.byethost33.com/htdocs/wordpress

    The public website (HTTP) address of your website address should be https://myusername.byethost33.com/wordpress

    The htdocs is merely the directory where the web server looks to load the site (ie Document Root), and it doesn’t appear in the website address at all.

    And it seems your host uses the cPanel hosting control panel software, and I’m assuming you added your custom domain as an ADD-ON domain in your cPanel dashboard.

    If this is so, then even though the FTP file structure for the custom domain is myusername.byethost33.com/mydomainname.com/htdocs/

    … the public website (HTTP) address will be simply https://mydomainname.com/

    I have copied the same menu bar from my website into the wordpress site and I want to add links from my wordpress site to my html files.

    The two sites are on different domains, so you need to specify the domain in the URL, and, no, it can’t be a file system path: it has to be the full, absolute public URL such as https://mydomainname.com/webpage.html

    If the above is still not clear, please provide the actual addresses of both the WordPress and HTML sites so I can take a look and give you more specific guidance.

    Good luck!

    [NB: I left the www out in the HTTP links above for simplicity. In your case, the www is optional and merely redirects to the root domain]

    Thread Starter waigy

    (@waigy)

    Yes, after starting this thread I actually got the links working by making the link the full address to the html page.

    Ie. https://www.mydomainname.com/webpage.html

    But I thought if my wordpress folder was in the same folder as my html files I should be able to use ../webpage.html

    Thread Starter waigy

    (@waigy)

    I can count this as resolved as it works fine with the full link including https

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Correct link for html pages’ is closed to new replies.