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 can I disable wordpress's 404 page and use my own? (https://gfy.com/showthread.php?t=895248)

CyberHustler 03-22-2009 01:28 PM

How can I disable wordpress's 404 page and use my own?
 
How can I disable wordpress's 404 page and use my own? I already had/have my own, but when I installed wordpress on the domain it now takes over and does it's own 404 thing. It's annoying as fuck.

LiveDose 03-22-2009 01:33 PM

Should be able to do it with .htaccess.

Ozarkz 03-22-2009 01:34 PM

Quote:

To edit your Theme’s 404 error template file:

1. Open your WordPress admin panel:
2. Choose Design menu. (Presentation pre 2.5)
3. Choose the Theme Editor page.
4. Check to see if your theme includes a ‘404 Template’ in the list of files.
5. Click the link for ‘404 template’ along the right side of the page.
6. Edit the message text to say what you want it to say.
7. Save your changes.
Or do you want to use your own file all together?

Here's a complete tutorial
http://codex.wordpress.org/Creating_an_Error_404_Page

Edit: I better say this before the 3 minute edit.. You likely want to completely bypass wordpresses 404 handling all together.. I'll be back.

CyberHustler 03-22-2009 01:44 PM

Quote:

Originally Posted by Ozarkz (Post 15659945)
You likely want to completely bypass wordpresses 404 handling all together.. I'll be back.

Yup... :pimp

Ozarkz 03-22-2009 01:46 PM

http://thefire.us/archives/212 maybe this? The guy says he's running Apache tho..

I don't know why i'm even responding to this thread. lol.

I'd bet Fris knows how.

CyberHustler 03-22-2009 02:00 PM

Wordpress has been pissing me off lately thinking it can just do whatever the fuck it wants. My last 2 installs set up a phantom robots.txt to disallow all user agents... Like what the fuck dude?

Now I realize I can't even use my own 404 page... I never noticed this before because this is the first time I'm adding it to an already established site that has it's own error pages that I use to redirect to a sponsor.

I bet it's some simple shit to fix that will expose my noobism, but it just pissed me off so bad I'd rather ask then try to figure it out right now and end up fucking a bunch of other shit up in the process. Google didn't help one bit either.

BladeZ 03-22-2009 02:12 PM

replace the content of your 404 template in the editor with a php redirect.
Code:

<?php
header( 'Location: hxxp://yoururl' ) ;
?>

This works fine and is very quick to do.

papill0n 03-22-2009 02:16 PM

Quote:

Originally Posted by CyberHustler (Post 15660015)
Wordpress has been pissing me off lately thinking it can just do whatever the fuck it wants. My last 2 installs set up a phantom robots.txt to disallow all user agents... Like what the fuck dude?

Now I realize I can't even use my own 404 page... I never noticed this before because this is the first time I'm adding it to an already established site that has it's own error pages that I use to redirect to a sponsor.

I bet it's some simple shit to fix that will expose my noobism, but it just pissed me off so bad I'd rather ask then try to figure it out right now and end up fucking a bunch of other shit up in the process. Google didn't help one bit either.

can u just put a refresh in the 404 template?

CyberHustler 03-22-2009 02:27 PM

Quote:

Originally Posted by BladeZ (Post 15660048)
replace the content of your 404 template in the editor with a php redirect.
Code:

<?php
header( 'Location: hxxp://yoururl' ) ;
?>

This works fine and is very quick to do.

Thanks. Worked. :thumbsup

My headache is gone now. I think I need anger management though. I coulda figured that out if I didn't get so pissed, lol.


All times are GMT -7. The time now is 03:56 PM.

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