splash page redirect

Client was purchased by another company.  They would like me to create a splash page for old company that says ABC company ws purchased by XYZ company.  You will be redirected in 10 seconds and then have that page automatically take visitor to new url.  How do I do that?  Never done it before.
Who is Participating?
DamjanConnect With a Mentor Commented:
Put this in your index.html
<meta http-equiv="refresh" content="10;url=http://www.newcompany.com/" />

You can also use something like:
        <meta http-equiv="refresh" content="10;url=http://www.www.newcompany.com/" />
        <h1>ABC company ws purchased by XYZ company.  You will be redirected in 10 seconds...</h1>

Open in new window

nsitedesignsAuthor Commented:
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Actually, the answer here will technically do what you want, but it is not very good practice.   It will kill any seo from the original company.  

The proper thing to do is create a 301 redirect.   Javascript/client side can not do this.  You have to either use your htaccess/webconfig file or use your serverside code.  

Since you are going from domain 1 to domain 2, using your htaccess/webconfig is probably a better way to go.    You can place a one time banner/div on the new site, "Welcome Domain 1 visitors ... ".  Perhaps use a cookie when they come to visit and only show the banner to people without the cookie.  

There are many options, but a client side redirect is not a good option.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.