Have you ever had the intention of uploading HTML files to WordPress? We sometimes need to use an HTML file to create a static file, but we usually encounter with an error 404 in WordPress. In this article, we want to examine a way to easily upload and use HTML file. You will find How to upload HTML file without error 404 in WordPress.
Upload HTML file to WordPress
Why do I need to upload an HTML file to WordPress?
WordPress is a content management system with which you can fully create a dynamic website, and most importantly, the ability to add and remove pages. Even the sheets we make can take on the look and feel of a beautiful design. We said this to say that you do not need to load a file or HTML pages. Anyway, there are people who have designed these pages and want to upload it. What should they do?
Certainly, when we load an HTML page on the WordPress site, we encounter 404 errors. What measures should you take for this purpose?
Step by step for uploading HTML files to WordPress
When you want to upload an HTML file to WordPress, what you need to do is rename the index.html file to index.php. Then, place all your desired files, such as HTML, CSS, and other folders into a compressed file. Then, go to your web hosting and click File Manager.
This folder is available in the public_html section where all WordPress files and folders are available. Now, click Add Folder to create an empty folder.
After clicking on that popup window it opens. You can specify the folder name.
Once the folder has been successfully created, open it and click the upload button to upload the zip file.
Then unzip the compressed file.
Specify which file to extract, and then click on the Extract files button.
You now see your files in the folder you are looking for. Then you can refer to the page you are looking for in the browser’s name (for example, yourwebsite.com/example). If your website does not use redirection, you may encounter error 404. To resolve this issue go to the file manager and the make htaccess file in editing mode. Then, enter the code below:
RewriteRule ^(.*)index\.(php|html?)$ /$1 [R=301,NC,L]
This code snippet allows redirects to index.php and allows the browser to display.
Finally, we hope you can upload WordPress HTML files without getting 404 errors in WordPress with the help of this tutorial. It’s true that such an action is not interesting, but it should be noted that some people use the old and static HTML sites. However, it’s time to create a different and dynamic website. Today’s solution is suitable for these people and they can easily make their own transfers.
It was How to upload HTML file without error 404 in WordPress article.