Hi, I have a problem that I have been trying to solve for a couple of days. I've inherited a website from a company that created their own wordpress theme and all old links redirect to the home page instead of to their corresponding new pages. I have asked them several times about how they are accomplishing this and they have told me that it's just part of wordpress. Having built many, many, many wordpress sites I know that is not the case. They recently pointed me to an .htaccess file that does not exist. I have FTP access and can see there is no .htaccess file in the root or in the theme. The only other thing I know to look at is the 404.php page. At the top of the 404.php page is the following code:
<?php header("Location: /"); get_header(); ?>
That's the only thing that looks a little strange but the rest of the page looks like a regular wordpress 404.php page. Not being a php pro myself I am not sure if this could be redirecting all the old links and 404's to the home page ("Location: /"?) At first I thought it was just grabbing the header but that 'location: /" has me wondering if this is where the automatic redirect might be happening. Anyone know if this could be the culprit for redirecting everything to the home page? If so, am I safe to remove just that portion of the php tag?