Today you will learn how to add a static HTML page to your WordPress website. This hack is based on the default settings - no additional tools or coding required.
You will need a WordPress website and a static HTML template.
You can use any WordPress theme and any HTML page/template.
Create an empty folder
First of all, you need to create a new empty folder in the root folder of your WordPress website. Typically, it is located here: /public_html/.
Our example is an addon domain; that’s why its address is /public_html/wildride1/. So, the location of our HTML template will be /public_html/wildride1/landing/, where ‘landing’ is the name of the folder with our template. The page will be available at http://wildride1.trinqt.com/landing/.
There are many ways to upload files to your hosting. You can use a standalone file manager (e.g. Total Commander or FileZilla), but we will use the default browser-based File Manager available in CPanel.
Step 1: Go to your CPanel and open File Manager.
Step 2: Create an empty folder in the root of your WordPress website.
Upload your static HTML template
You are not allowed to upload regular folders, but you can upload .ZIP files and unzip them right in the file manager. The process is quick and painless.
Step 3: Extract only the template files; ignore sources, screenshots, documentation, etc. In our case you need the contents of the ‘site’ folder:
Step 4: Rename the index.html file to index.php.
Step 5: Add all the files to a .ZIP archive.
Step 6: Now go to the file manager, and upload your .ZIP file into the folder you’ve just created.
Step 7: When it’s done, right-click the .ZIP file, and choose ‘Extract’.
Step 8: Delete the .ZIP file.
You can check the final results here: http://wildride1.trinqt.com/landing/.
RewriteRule ^(.*)index\.(php|html?)$ /$1 [R=301,NC,L]
Get more info in this thread on Stackoverflow.
Congratulations! Now your static HTML page is incorporated into your WordPress website and can be accessed using a fancy, user-friendly address. Don't hesitate to visit our collections of WordPress themes, HTML templates, and landing pages, and create your awesome combination. And if you have a nice HTML template - we can convert it to the WordPress website. You won't have to do a thing - our Service Center will do everything for you.