How to Code a PHP Redirect - PHP Header Redirect
<?php header("Location: http://www.redirect.to.url.com/"); ?>Where 'http://www.redirect.to.url.com/' is the URL you wish the users to be redirected to. This can also be a file, like so:
<?php header("Location: anotherDirectory/anotherFile.php"); ?>Files can be of any type, including but not limited to HTML, python, PHP, CGI, Perl, and compiled CGI programs.
- WordPress Maintenance Mode: Everything You Need to Know
- How to Become a WordPress Contributor: A Comprehensive Guide
- How to Optimize Your Site
Pro Tip: WordPress users can get professional guidance from an expert that understands the ins and outs of WordPress. Our BlueSky gurus can help you configure your PHP and so much more. Give them a call at 1-855-435-1008 or request a callback here for more information on this service.