alternate home page ??

T

Ted Jackson

I came this way looking for how to set up an alternate index page and
didn't find the answer. So, I've come back to leave the solution that
worked for me for the next poor lost soul. In the public_html
directory create a file .htaccess containing the line "DirectoryIndex
specialindex.htm index.htm", without quotes of course. When someone
access your URL this file will cause loading of the first file listed
which exists. My specialindex.htm refreshes to the regular index.htm
file after 5 seconds. The line <META HTTP-EQUIV="refresh"
CONTENT="5;URL=http://www.mywebsite.ca/index.htm"> in the HEAD section
causes the refresh. I have another line at the bottom that allows the
user to click and go to index.htm if the automatic refresh doesn't
happen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top