I am quite new to PHP, and have heard that there is a way of redirecting all files on my site to another.
For example, no matter whether the visitor tries to access http://www.mysite.com/shop.php or http://www.mysite.com/contact.php, or any other page, they'll always be redirected to http://www.myothersite.com/index.php
I simply want to catch all visitors to my old site, and immediately transfer them to my new one. I've heard it can be done by editing one file, rather than every file on the site. Can anyone please offer specifics?
Auto redirect of all pages
Moderator: General Moderators
I think you might be talking about the .htaccess file.
For tutorials on htaccess, Google is your friend...
For tutorials on htaccess, Google is your friend...
if there's a single file you include in all of the pages of the old site
like include 'databaseinfo.php';
or
include 'header.php';
You could put a simple header location at the top of one of those files.
like include 'databaseinfo.php';
or
include 'header.php';
You could put a simple header location at the top of one of those files.
Code: Select all
header("Location: http://www.domain.com");Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.