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)
-   -   any wordpress gurus around.. I want external 404 (https://gfy.com/showthread.php?t=875529)

spacedog 12-14-2008 09:33 PM

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

Agent 488 12-14-2008 09:40 PM

google "wordpress 404" you'll find some articles there.

spacedog 12-14-2008 09:44 PM

Quote:

Originally Posted by budsbabes (Post 15196589)
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 :1orglaugh :winkwink:

NickSunshine 12-14-2008 10:07 PM

from adx-
Quote:

Originally Posted by NickSunshine (Post 323338)
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");
}



spacedog 12-14-2008 10:26 PM

Quote:

Originally Posted by NickSunshine (Post 15196659)
from adx-

Read slower :2 cents:

spacedog 12-14-2008 10:52 PM

got it fixed.. had to reupload some wp files that were fucked up and now works with 404.php added..
thanks guys

Snake Doctor 12-15-2008 01:57 AM

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.

geedub 06-23-2009 01:53 PM

i use a php redirect in my theme's 404.php
seems to be working out i guess

fris 06-23-2009 03:45 PM

http://wordpress.org/extend/plugins/redirection/


All times are GMT -7. The time now is 04:14 PM.

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