Mobile app version of vmapp.org
Login or Join
YK1175434

: Showing index.htm and index.php both I have a static HTML based site. Server automatically pulls the index.htm as the default page. Fine. I just installed WordPress in the root: But .com/index.php

@YK1175434

Posted in: #Htaccess #Wordpress

I have a static HTML based site.

Server automatically pulls the index.htm as the default page. Fine.

I just installed WordPress in the root:
But .com/index.php is redirecting automatically to .com/index.htm.

I need to be able to see both index.htm (as main page for current site visitors) and index.php for my work on the theme and new WordPress pages.

Also, when I do the .htaccess: DirectoryIndex index.php index.htm.

I am then able to see the WordPress .com/index.php but then can no longer see index.htm as the site then defaults to the index.php.

How can I see both index.htm and index.php at the same time?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @YK1175434

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

Why don't you put your current static page in the home.php file of your WP theme? This way it will be shown when somebody types yourdomain.com. At the same time, you can continue working on your WP theme. If you need a separate home page layout for your WP theme, you can create a page in WP (say, "Home") responsible for your WP home page, create a template file for it and test it under, say, yourdomain.com/home

10% popularity Vote Up Vote Down


 

@Welton855

This normally simply works out of the box by not having a RewriteRule or DirectoryIndex for the root of either site. If it does not for you, you will have to provide the contents of your .htaccess.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme