![]() |
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? |
like this:
2525629562346092 4902406925069 214529035 924i029450294i 2094923i4gg k2345435. |
drunk?
_____________ |
It depends on your theme but look for
<p>Sorry, no posts matched your criteria.</p> |
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. |
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