Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

add index.html to a wordpress website

I have a website on wordpress, default page is index.php
I added a non-wordpress page (index.html) which works as a splash page and links to index.php.

On IIS I set index.html as default, so it loads, but when user clicks on the link that should take to index.php it goes back to index.html instead ... I am not sure why.
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Do you have URL rewriting (or SEO, search engine, friendly URLs) on?  If I remember correctly, this makes all requests for "/index.php" process as "/" (i.e., it removes the index.php from the URL)...therefore, what you probably are seeing is the page thinking that the default page is your index.php but it is not since you set index.html as the default.  If you want both, you can try having your splash page at a level above.

In other words, make your WordPress site in a sub folder like "/blog" then when you hit "/" you get your default index.html page but then when you hit "/blog" you get your default index.php page.  I hope that makes sense.
Avatar of Aleks

ASKER

I get the idea. If I move the wordpress one folder under won't all the links of the site have problems ?
Avatar of Aleks

ASKER

that didn't work. it made a mess of the site  :$
ASKER CERTIFIED SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What are you trying to accomplish by adding a splash page to your existing WordPress site?
Avatar of Aleks

ASKER

Never mind. I decided to change to a Bootstrap website. I am having too many issues with MySQL and web attacks