How can I disable wordpress's 404 page and use my own?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CyberHustler
    Masterbaiter
    • Feb 2006
    • 28742

    #1

    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.
    “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”
  • LiveDose
    Show Yer Tits!
    • Feb 2002
    • 25792

    #2
    Should be able to do it with .htaccess.

    Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal

    Comment

    • Ozarkz
      So Fucking Banned
      • Jan 2009
      • 2377

      #3
      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, 12:38 PM.

      Comment

      • CyberHustler
        Masterbaiter
        • Feb 2006
        • 28742

        #4
        Originally posted by Ozarkz
        You likely want to completely bypass wordpresses 404 handling all together.. I'll be back.
        Yup...
        “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

        Comment

        • Ozarkz
          So Fucking Banned
          • Jan 2009
          • 2377

          #5
          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, 12:47 PM.

          Comment

          • CyberHustler
            Masterbaiter
            • Feb 2006
            • 28742

            #6
            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.
            “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

            Comment

            • BladeZ
              So Fucking Banned
              • Mar 2004
              • 272

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

              Comment

              • papill0n
                Unregistered Abuser
                • Oct 2007
                • 15547

                #8
                Originally posted by CyberHustler
                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?

                Comment

                • CyberHustler
                  Masterbaiter
                  • Feb 2006
                  • 28742

                  #9
                  Originally posted by BladeZ
                  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.
                  “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

                  Comment

                  Working...