Open .html File In Wordpress Website
I have WordPress website in which I uploaded 'popup-menu.html' file which is in .html format. When I visit url 'http://testproject.co/projects2015/prismic_new/wordpress/popup-menu.
Solution 1:
If you need to have a static , non WordPress file on your server you can have it on the root directory , just as another file, and can easily access it from the URL . WordPress will not interfere with that url.
WordPress .htaccess will not try to implement its redirect rules on any FILE or FOLDER which exists on main root folder or anywhere.
So if e.g. you need /static.html , you can safely upload it on your root folder with the same name and can access from your browser, WordPress will have nothing to do with it.
You do not need to put it in themes folder as you have done in the start.
Solution 2:
Go through following steps:
- Make sure your web server is pointing to correct directory for popup-menu.html. If not correct it.
- Open FTP Client and connect to your server. Navigate to the file’s location Verify that the file exists. If it is does not exist, you have found the source of your 404.
- Navigate to: WordPress Dashboard → Settings → Permalinks: Click “Save Changes”. Test your URL. If the 404 goes away, something caused an issue with your permalink structure and this fixed it.
Post a Comment for "Open .html File In Wordpress Website"