• Although I have added static pages to my WordPress site, I have a reason to want to add other pages without making them WordPress static pages.

    Example: website is https://example.com and I want to add a page called Hobbies.html so that the page shows up as https://example.com/hobbies.html

    I use CUTEFTP for file transfers. I uploaded my page into /public_html but got a 404 Not Found error when trying to access it by typing https://example.com/hobbies.html

    I moved the page to the root directory and got the same error.

    Is there a way to do this? Please assume I have a good reason for doing this and don’t digress by asking me why. I’d just like an answer if this is possible.

    Many thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • create a folder in your root directory called hobbies and rename hobbies.html to index.html
    this worked for me while using custom structure permalinks of
    /%category%/%postname%/
    so dunno if it would be any different if you arent using permalinks

    I always add files in the /public_html/ folder for easy downloading, so I don’t know why it doesn’t work for you. If you really want it to work that way you may ask your hosting company tech support. Should work

    One more note, always name your files with a .php extension. If you do then you can always add database or PHP functionality to it later. If you name it .html then you have to rename the file later for this type of functionality, mess with 301 redirects, and lose SEO value in the meantime.

    Thread Starter docteurg

    (@docteurg)

    Thanks for the reply thebettertwin. I tried your suggestion and a couple of variations without success.

    the actual name of the website is docteurg.com and the page I want to add (and there will be several more after this) is MeetEstelle.html

    I made a folder called MeetEstelle and changed the name of MeetEstelle.html to index.html

    I put the folder in the root directory with no result. Then I moved it into public_html with no result.

    I’ll make a further explanation of what I’m trying to accomplish in the next post to RockyMtnHi in case you see something there that migh suggest a solution.

    Thanks for taking the time to respond.

    Thread Starter docteurg

    (@docteurg)

    I appreciate your suggestion RockyMtnHi. I think I need to explain what I’m wanting to do.

    I’ve replaced a website that existed for about 5 years and was well-indexed by search engines with a WordPress-based website.

    I want to make replacement web pages for those pages that were indexed by a search engine. For example, there is a page called https://docteurg.com/MeetEstelle.html

    Yes, the information is covered in my ABOUT page in the WordPress site, but anyone who uses Google gets the old page as a link and tries to click on it resulting in a 404 Not Found message.

    There are other pages from the web site that will turn up if certain key words are Googled, and I want to put a page back up to the same link so people can go to it.

    Unfortunately, I don’t think I can use the .PHP extension and get the results I want.

    meanwhile, I’ve set up a mirror of the older site on a .NET domain so the information is still out there — it just won’t show up on the search engines for a little while.

    Thanks for your time and effort.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding non-wordpress pages’ is closed to new replies.