404 Error Messages From all over
-
carlmasure
- Posts: 117
- Joined: 24 Nov 09
- Location: United States
- Trust:
03 Mar 10 4:27 am
404 Error Messages From all over
Hi all,
I was looking at my stats in cpanel and noticed that I'm getting several 404s on my domain with sub domains that are related to my niche, but not on my website. It looks as if people are typing in my domain name hoping to get to another site's page, but alas, they end up at my site. Error traffic is good, but what to do with it?
I installed the 404 SEO plugin for WP and it is supposed to offer link suggestions to other pages on my site based on keywords within my site. After some testing, I found out that some of the suggestions offered by the plugin include links to my competitors. Is there a plugin that only will provide links to my site?
Or, can I simply insert code into my 404 editor page that simply redirects people to one of my landing pages? And, if so, what code should I use?
Thanks in advance,
Carl
I was looking at my stats in cpanel and noticed that I'm getting several 404s on my domain with sub domains that are related to my niche, but not on my website. It looks as if people are typing in my domain name hoping to get to another site's page, but alas, they end up at my site. Error traffic is good, but what to do with it?
I installed the 404 SEO plugin for WP and it is supposed to offer link suggestions to other pages on my site based on keywords within my site. After some testing, I found out that some of the suggestions offered by the plugin include links to my competitors. Is there a plugin that only will provide links to my site?
Or, can I simply insert code into my 404 editor page that simply redirects people to one of my landing pages? And, if so, what code should I use?
Thanks in advance,
Carl
-
Aletta - Posts: 1363
- Joined: 09 Jul 06
- Location: New Zealand
- Trust:
03 Mar 10 4:49 am
It's pretty standard to just redirect a 404 to a particular page on your site. It's typically your homepage, but you could use one of your landing pages.
Look in your theme editor (Appearance > Editor) and see if you have a 404 page in there.
If so, just stick this little bit of PHP in the top (make sure there's nothing else in there!)
You might be able to do this kind of thing with a plugin... there are so many out there. It's best to have a dig around and maybe ask on some specialist Wordpress forums if you can't find some smart person in here to help you.
Look in your theme editor (Appearance > Editor) and see if you have a 404 page in there.
If so, just stick this little bit of PHP in the top (make sure there's nothing else in there!)
- Code: Select all
<?php
header( 'Location: http://www.newURL.com' ) ;
?>
You might be able to do this kind of thing with a plugin... there are so many out there. It's best to have a dig around and maybe ask on some specialist Wordpress forums if you can't find some smart person in here to help you.
-
carlmasure
- Posts: 117
- Joined: 24 Nov 09
- Location: United States
- Trust:
03 Mar 10 4:58 am
Thanks a ton Aletta! I was fooling around with my 404 page and added some catchy text apologizing and providing a link to the page I want them on.
