Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-11-2007, 02:50 PM   #1
Snake Doctor
I'm Lenny2 Bitch
 
Snake Doctor's Avatar
 
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
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.
__________________
sig too big
Snake Doctor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 02:51 PM   #2
DEA - banned for life
V.I.P.
 
Join Date: Nov 2004
Location: InYour Head
Posts: 7,886
Hi Lenny
DEA - banned for life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 06:55 PM   #3
Snake Doctor
I'm Lenny2 Bitch
 
Snake Doctor's Avatar
 
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
Help a brutha out please
__________________
sig too big
Snake Doctor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 10:00 PM   #4
bu((aneer
Confirmed User
 
Join Date: Nov 2004
Posts: 651
stick to submitting galleries..
bu((aneer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 10:07 PM   #5
Two Guys Named Tony
Confirmed User
 
Join Date: Jun 2005
Posts: 187
Most themes have a 404 page template. Just modify that template to include a php redirect.

PS Chio says YARGH!
__________________
Two Guys Named Tony is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 10:08 PM   #6
Two Guys Named Tony
Confirmed User
 
Join Date: Jun 2005
Posts: 187
You may also want to try adding the 404 line in your htaccess page that controls the permalinking
__________________
Two Guys Named Tony is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 10:10 PM   #7
RawAlex
So Fucking Banned
 
Join Date: Oct 2003
Location: In a house.
Posts: 9,465
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.
RawAlex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 10:10 PM   #8
Snake Doctor
I'm Lenny2 Bitch
 
Snake Doctor's Avatar
 
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
Quote:
Originally Posted by Two Guys Named Tony View Post
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
__________________
sig too big
Snake Doctor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2007, 10:13 PM   #9
Two Guys Named Tony
Confirmed User
 
Join Date: Jun 2005
Posts: 187
Quote:
Originally Posted by Lenny2 View Post
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!
__________________
Two Guys Named Tony is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.