GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to redirect 404 traffic on a wordpress site? (https://gfy.com/showthread.php?t=713682)

Snake Doctor 03-11-2007 02:50 PM

How to redirect 404 traffic on a wordpress site?
 
I tried adding a 404 line to the htaccess, but that doesn't work.

Well it worked if I deleted the symlinks or permalinks or whatever info that was in the htaccess, but then that would mess up my SEO efforts.

I tried using an http meta refresh on the 404 template in my wordpress theme but that didn't work either, just brought up a blank page cannot be found.

Anyone know how to redirect 404 traffic offsite with wordpress? I'd appreciate the help.

DEA - banned for life 03-11-2007 02:51 PM

Hi Lenny :)

Snake Doctor 03-11-2007 06:55 PM

Help a brutha out please

bu((aneer 03-11-2007 10:00 PM

stick to submitting galleries..:2 cents:

Two Guys Named Tony 03-11-2007 10:07 PM

Most themes have a 404 page template. Just modify that template to include a php redirect.

PS Chio says YARGH!

Two Guys Named Tony 03-11-2007 10:08 PM

You may also want to try adding the 404 line in your htaccess page that controls the permalinking

RawAlex 03-11-2007 10:10 PM

In your wordpress template area, create a page called 404.php - do whatever you want in there. That is your 404 page. Since wordpress 2.0.6, it even actually delivers a proper 404 code as well, which is a nice touch.

Snake Doctor 03-11-2007 10:10 PM

Quote:

Originally Posted by Two Guys Named Tony (Post 12057593)
Most themes have a 404 page template. Just modify that template to include a php redirect.

PS Chio says YARGH!

YARGH!
I got it figured out, I was trying to do a meta http refresh and that didn't work because it was a php page.
Found some php redirect code and that did the trick.

Now that this is taken care of I can spend more time waxin me carrot

Two Guys Named Tony 03-11-2007 10:13 PM

Quote:

Originally Posted by Lenny2 (Post 12057603)
YARGH!
I got it figured out, I was trying to do a meta http refresh and that didn't work because it was a php page.
Found some php redirect code and that did the trick.

Now that this is taken care of I can spend more time waxin me carrot

Yup that's why I said php redirect. They rule. Glad you got it sorted. You may also want to run a url redirection script if you have a lot of blogs. This way to can have all the 404 redirects point to one url and just edit that page if you want to change things up.

In any case... YARGH!


All times are GMT -7. The time now is 07:55 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123