Splash or Intro Page in WordPress

For you who find its troublesome to use a splash or intro page before getting into your site, i got some solution. I use this in wordpress, cause i kinda confuse about how to create an intro page before getting to my main site. After searching for a while i got some solution and it gotto do with modifying your .htaccess file. Check it out :

Mostly, the normal .htaccess its gonna look like bellow :


# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

It means that if you go to your domain example www.abcdefg.com, it gonna redirect you to index.php
To redirect it to your intro page you can add this code “DirectoryIndex splash.html index.php” to the .htaccess so its gonna look like below :


# BEGIN WordPress
DirectoryIndex splash.html index.php

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

So the first page its gonna run is splash.html, which is your intro page.

The other solution is also gotto do with your .htaccess, you can use “Redirect 301 /index.php http://www.example.com/splash.html”. Its gonna looks like below :


# BEGIN WordPress
Redirect 301 /index.php http://www.abcdefg.com/splash.html

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

By using this code, if the user go to “index.php” its gonna be automaticly redirect to http://www.abcdefg.com/splash.html.

Well, you might wonder why i bother using code while other might be using plugins?…cause i try not to load too much plugins at the website, its gonna lower the load proccess for the site i supposed.

Hope this gonna help solve your problem or you get what you need.

Leave a Reply

Your email address will not be published. Required fields are marked *