skip to Main Content

I have an installed WordPress website.

I’m working on the site, therefore, I want to show a constructor page for the internet user. I have created a page which called first.html and I change the .htaccess file like below

#Alternate default index page
DirectoryIndex first.html

Now when I enter my domain name on the browser I can see the first.html. This is working properly.

I’d like to see my changes by entering the domain and page name on the browser like

www.mydomain/index.php

or

www.mydomain/wp-content/themes/XXXTHEME/index.php

However, my theme pages don’t work.

How can I achieve to do this?

2

Answers


  1. Instead of making changes in .htaccess, I’d suggest you to use this plugin : https://wordpress.org/plugins/maintenance/

    Login or Signup to reply.
  2. Simply name your html file “index.html”

    Web servers most commonly parse the index.html file firstly (unless told otherwise) and if it is not found, it proceeds to index.php

    This also allows you to simply change that “.html” part to “.php” to see the website you are working on, without installing plugins that clutter your database or making unnecessary changes to your .htaccess file.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search