WORDPRESS , Search shows ZERO results , need it to redirect....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #1

    WORDPRESS , Search shows ZERO results , need it to redirect....

    to a specific url...... jow can I do this??????


    You search for Teabag and it shows zero results , instead if the no results need it to redirect.


    How?
  • who
    So Fucking Banned
    • Aug 2003
    • 19593

    #2
    like this:

    2525629562346092 4902406925069 214529035 924i029450294i 2094923i4gg k2345435.

    Comment

    • OG LennyT
      Wall Street Pimp
      • Jun 2003
      • 14345

      #3
      drunk?

      _____________
      Tradeking - my online broker | 4.95 a trade | make real $$

      Comment

      • datatank
        Confirmed User
        • Aug 2004
        • 5471

        #4
        It depends on your theme but look for
        <p>Sorry, no posts matched your criteria.</p>

        Comment

        • Martin3
          Confirmed User
          • Oct 2005
          • 1529

          #5
          Not something I've tried but you should be able to just add the redirect to the search.php

          Of course if you want keyword specific redirects that gets a little more difficult.
          264-543-302

          Comment

          • Forkbeard
            Confirmed User
            • Feb 2002
            • 2236

            #6
            Search.php currently has a php "else" conditional statement that prints your "no posts found" message. You ought to be able to replace that "no posts found" message with some more php code that does a redirect.

            Here's a link that says you can echo a meta-redirect using php. I have not tried it.


            --- code for inside the existing "else" loop --

            echo "<META HTTP-EQUIV=\"Refresh\"
            CONTENT=\"5; URL=html-redirect2.html\">";

            --- end of code --
            Offering sponsored blog posts and custom writing services.

            Comment

            Working...