How to redirect 404 traffic on a wordpress site?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Snake Doctor
    I'm Lenny2 Bitch
    • Mar 2001
    • 13449

    #1

    How to redirect 404 traffic on a wordpress site?

    I tried adding a 404 line to the htaccess, but that doesn't work.

    Well it worked if I deleted the symlinks or permalinks or whatever info that was in the htaccess, but then that would mess up my SEO efforts.

    I tried using an http meta refresh on the 404 template in my wordpress theme but that didn't work either, just brought up a blank page cannot be found.

    Anyone know how to redirect 404 traffic offsite with wordpress? I'd appreciate the help.
    sig too big
  • DEA - banned for life
    V.I.P.
    • Nov 2004
    • 7886

    #2
    Hi Lenny

    Comment

    • Snake Doctor
      I'm Lenny2 Bitch
      • Mar 2001
      • 13449

      #3
      Help a brutha out please
      sig too big

      Comment

      • bu((aneer
        Confirmed User
        • Nov 2004
        • 651

        #4
        stick to submitting galleries..

        Comment

        • Two Guys Named Tony
          Confirmed User
          • Jun 2005
          • 187

          #5
          Most themes have a 404 page template. Just modify that template to include a php redirect.

          PS Chio says YARGH!

          Comment

          • Two Guys Named Tony
            Confirmed User
            • Jun 2005
            • 187

            #6
            You may also want to try adding the 404 line in your htaccess page that controls the permalinking

            Comment

            • RawAlex
              So Fucking Banned
              • Oct 2003
              • 9465

              #7
              In your wordpress template area, create a page called 404.php - do whatever you want in there. That is your 404 page. Since wordpress 2.0.6, it even actually delivers a proper 404 code as well, which is a nice touch.

              Comment

              • Snake Doctor
                I'm Lenny2 Bitch
                • Mar 2001
                • 13449

                #8
                Originally posted by Two Guys Named Tony
                Most themes have a 404 page template. Just modify that template to include a php redirect.

                PS Chio says YARGH!
                YARGH!
                I got it figured out, I was trying to do a meta http refresh and that didn't work because it was a php page.
                Found some php redirect code and that did the trick.

                Now that this is taken care of I can spend more time waxin me carrot
                sig too big

                Comment

                • Two Guys Named Tony
                  Confirmed User
                  • Jun 2005
                  • 187

                  #9
                  Originally posted by Lenny2
                  YARGH!
                  I got it figured out, I was trying to do a meta http refresh and that didn't work because it was a php page.
                  Found some php redirect code and that did the trick.

                  Now that this is taken care of I can spend more time waxin me carrot
                  Yup that's why I said php redirect. They rule. Glad you got it sorted. You may also want to run a url redirection script if you have a lot of blogs. This way to can have all the 404 redirects point to one url and just edit that page if you want to change things up.

                  In any case... YARGH!

                  Comment

                  Working...