![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
I'm Lenny2 Bitch
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
V.I.P.
Join Date: Nov 2004
Location: InYour Head
Posts: 7,886
|
Hi Lenny
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
I'm Lenny2 Bitch
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
|
Help a brutha out please
__________________
sig too big |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2004
Posts: 651
|
stick to submitting galleries..
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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!
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
I'm Lenny2 Bitch
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jun 2005
Posts: 187
|
Quote:
In any case... YARGH!
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |