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)
-   -   WORDPRESS , Search shows ZERO results , need it to redirect.... (https://gfy.com/showthread.php?t=733550)

Juicy D. Links 05-15-2007 04:56 PM

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 05-15-2007 04:58 PM

like this:

2525629562346092 4902406925069 214529035 924i029450294i 2094923i4gg k2345435.

OG LennyT 05-15-2007 05:52 PM

drunk?

_____________

datatank 05-15-2007 05:57 PM

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

Martin3 05-15-2007 06:02 PM

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.

Forkbeard 05-15-2007 08:19 PM

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


All times are GMT -7. The time now is 07:17 PM.

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