• I have a small, old html site and I’d like to load it to the WordPress folder structure and then link to it in my WordPress theme. Where would I put the files and how (what method) should I use to upload them?

    Thanks – rev

Viewing 8 replies - 1 through 8 (of 8 total)
  • The theme doesn’t link to anything. It just outputs content from the database.
    You can have existing HTML files on your site, with WordPress, but you have to link to them manually (in content or in menus) as there is no support for external files.
    It might be better if you copy/paste each old page’s content to a new WordPress page.
    But if you still want to leave them as-is, put them where you want their URL to be. If that’s the root or a folder, put them to make the URL work.

    Thread Starter revnice

    (@revnice)

    Thanks Joy! I have all the files uploaded but I’m having trouble invoking index.html

    Assuming the files are under public_html, can you give me an example of what the link should be?

    Thread Starter revnice

    (@revnice)

    >It might be better if you copy/paste each old page’s content to a new WordPress page.
    Is it that simple? Surely all the formatting would freak out and I’d be there for six months ??

    The index.html is the exception. You will have to rename that one to something else unless you don’t want WordPress to control the home page.

    Depending on what you have in your files, the HTML should work fine in WordPress page, with your theme styling everything like it would for any other page. But if you have inline styling or a lot of CSS in a stylesheet, it might take a little more work to integrate that with your theme.

    Thread Starter revnice

    (@revnice)

    OK thanks, I’ll give it a try. Giles

    Thread Starter revnice

    (@revnice)

    Joy: I decided to leave the html stuff alone, if it works, don’t fix it – but I still don’t know how to invoke index.html. Can you give me a clue?

    Thanks – Giles

    If you link to it directly ‘domain/index.html’ then it will be loaded. But the server has an order to try for the index files, and it might be set to try index.php before index.html. So if the file name is left off like ‘domain/’, it will invoke WordPress and you’ll see whatever you chose for your home page in WP.
    You can rename it to home.html, and then link to it like that (the default page will be WP’s). Or you can add your own ordering in the .htaccess file, but I think that might adversely affect how WP handles everything else.
    Maybe just for the index.html file, you should put the content in a WP page.

    Thread Starter revnice

    (@revnice)

    I got it going, it was none of the above. The problem was the top folder name started with an upper case character and I hadn’t noticed. It usually doesn’t matter but Linux has some case sensitive rules so maybe it’s a linux server?

    Thanks so much for all your time, knowlege and prompt replies. Check it out, it was my first rock musical.

    https://revnice.net/Ironpig/index.html

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Where/how do I upload html files?’ is closed to new replies.