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-22-2009, 01:28 PM   #1
CyberHustler
So Fucking Banned
 
Industry Role:
Join Date: Feb 2006
Posts: 26,062
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.
CyberHustler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 01:33 PM   #2
LiveDose
Show Yer Tits!
 
LiveDose's Avatar
 
Industry Role:
Join Date: Feb 2002
Location: Somewhere Out there...
Posts: 25,792
Should be able to do it with .htaccess.
__________________

Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal
LiveDose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 01:34 PM   #3
Ozarkz
So Fucking Banned
 
Join Date: Jan 2009
Posts: 2,377
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.

Last edited by Ozarkz; 03-22-2009 at 01:38 PM..
Ozarkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 01:44 PM   #4
CyberHustler
So Fucking Banned
 
Industry Role:
Join Date: Feb 2006
Posts: 26,062
Quote:
Originally Posted by Ozarkz View Post
You likely want to completely bypass wordpresses 404 handling all together.. I'll be back.
Yup...
CyberHustler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 01:46 PM   #5
Ozarkz
So Fucking Banned
 
Join Date: Jan 2009
Posts: 2,377
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.

Last edited by Ozarkz; 03-22-2009 at 01:47 PM..
Ozarkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 02:00 PM   #6
CyberHustler
So Fucking Banned
 
Industry Role:
Join Date: Feb 2006
Posts: 26,062
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.
CyberHustler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 02:12 PM   #7
BladeZ
So Fucking Banned
 
Industry Role:
Join Date: Mar 2004
Posts: 272
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.
BladeZ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 02:16 PM   #8
papill0n
Unregistered Abuser
 
Industry Role:
Join Date: Oct 2007
Posts: 15,547
Quote:
Originally Posted by CyberHustler View Post
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?
papill0n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2009, 02:27 PM   #9
CyberHustler
So Fucking Banned
 
Industry Role:
Join Date: Feb 2006
Posts: 26,062
Quote:
Originally Posted by BladeZ View Post
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.

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.
CyberHustler 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.