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 12-14-2008, 09:33 PM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
any wordpress gurus around.. I want external 404

I'm using Bob's limau orange theme on a wordpress blog.. there's no 404.php

Anyway.. I want 404 to go to an external url not the default wordpress not found.. I added the errordocument directives to my .htaccess but it's not working.

Anyone know how to solve this?

348-132-803
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-14-2008, 09:40 PM   #2
Agent 488
Registered User
 
Industry Role:
Join Date: Feb 2006
Posts: 22,511
google "wordpress 404" you'll find some articles there.
Agent 488 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-14-2008, 09:44 PM   #3
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by budsbabes View Post
google "wordpress 404" you'll find some articles there.
Yeah smartass.. I just spent the last two hours doing just that reading various BULLSHIT from there, NONE of which have ANYTHING to do with my question
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-14-2008, 10:07 PM   #4
NickSunshine
Confirmed User
 
NickSunshine's Avatar
 
Join Date: Mar 2006
Posts: 1,196
from adx-
Quote:
Originally Posted by NickSunshine View Post
i dont use wordpress, and have not tried this, but i found this at wordpress, and took a stab at it anyway.

hope it works :tup:

Creating an Error 404 Page WordPress Codex

right before this:
Code:
// begin the output buffer to send headers and resonse
ob_start();
@header("HTTP/1.1 $AA_STATUS_CODE $AA_REASON_PHRASE",1);
@header("Status: $AA_STATUS_CODE $AA_REASON_PHRASE",1);
put this:
Code:
if($AA_STATUS_CODE == '404'){
  header("Location: http://path.to/whatever");
}
__________________
NickSunshine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-14-2008, 10:26 PM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by NickSunshine View Post
from adx-
Read slower
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-14-2008, 10:52 PM   #6
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
got it fixed.. had to reupload some wp files that were fucked up and now works with 404.php added..
thanks guys
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2008, 01:57 AM   #7
Snake Doctor
I'm Lenny2 Bitch
 
Snake Doctor's Avatar
 
Join Date: Mar 2001
Location: On top of my soapbox
Posts: 13,449
easiest way is to create a 404.php and upload it to the theme directory, and then just do the redirect from within that file with something like this
PHP Code:
<?php
header
'Location: http://www.yoursite.com/where_I_want_them_to_go.html' ) ;
?>
Even though SD's problem is solved, someone will eventually find this thread through search and the resolution wasn't explained very well...and I fucking hate that when I come across something like that.

50 results on google showing threads about "how do I fix this?" and all of them end with the thread starter posting "figured it out....thanks"......and that's it....no solution offered.
It's fucking annoying.

So this post was my contribution to humanity.
__________________
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 06-23-2009, 01:53 PM   #8
geedub
Confirmed User
 
Industry Role:
Join Date: Jun 2005
Location: concrete jungle
Posts: 3,489
i use a php redirect in my theme's 404.php
seems to be working out i guess
__________________
Reliable web host that actually cares, tell em geedub sent ya. Vacares
geedub is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-23-2009, 03:45 PM   #9
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,351
http://wordpress.org/extend/plugins/redirection/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris 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.