You could do it with mod_rewrite
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=123.45.67.89
RewriteRule index.php$ /construction.php [R=301,L]
More Related Contents:
- How can I use .htaccess rewrite to redirect root URL to subdirectory?
- .htaccess redirect www to non-www with SSL/HTTPS
- ReWrite rule to add .html extension
- Force HTTPS for specific URL
- Rewrite URL after redirecting 404 error htaccess
- How to do htaccess redirect based on cookie value
- Add Trailing Slash .htaccess
- Need to redirect all traffic to https
- Redirect .php URLs to URLs without extension [duplicate]
- .htaccess to redirect images
- Best Practice: 301 Redirect HTTP to HTTPS (Standard Domain)
- .htaccess redirect – automatically add www. if no subdomain exists
- .htaccess URL redirect
- .htaccess redirect without changing address bar
- 301 redirect .htaccess
- 301 redirect from URL with query string to new domain with different query string
- .htaccess redirect
- Using regular expression in htaccess for 301 redirects
- Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess
- Redirect non-www to www in .htaccess
- http to https through .htaccess
- How to write htaccess rewrite rule for seo friendly url
- Block all bots/crawlers/spiders for a special directory with htaccess
- How to get MAMP to read .htaccess files
- apache redirect http to https and www to non www
- How can I redirect to a different domain without changing the URL in the address bar?
- Issue In Removing Double Or More Slashes From URL By .htaccess
- ‘hash’ url rewrite in .htaccess
- Make web root folder a sub-folder with .htaccess?
- Force a file or image to download using .htaccess