Search in wordpress - wordpress

My problem, when I searched in WP on English language, it's working Good, but when I start to search on Russian or Japanese it's redirect me on page {site.com}/search and shows 404 page.

You might have zero records for that query. Start Searching for those results that could match with your database.
I mean to say search that content which is already in data base, Otherwise you will be redirected to 404 Page.

Do you using custom search script or any hook for search function?
Or you using default WordPress search form?

Related

Google has indexed several non-existing pages on my WordPress website

When searched on Google my website (elesztohaz.hu) shows up several non-existent pages that seems to come from a separate website. You can see a few on this SERP page. These results all lead to a 404 page however but I'm unable to find an answer to how Google indexed them in the first place.
Another, more pressing problem would be that several (main) pages on my site are not getting indexed at all. You can see it on the attached screengrab.Search Console screengrab I double checked everything in WP but haven't found anything amiss. No phantom pages and signs of breach.
The website was built with the Divi builder for Wordpress. Any help would be much appreciated!
As you are using WordPress you can go and check it in the WordPress dashboard, pages section and check the unwanted pages that are ranking in the Search Engine is there or not. If it is there and unwanted then move it to trash. Generate a new sitemap and post it in the Google Search Console.
If the unwanted 404 pages are not on your WordPress dashboard pages section then just copy the link from the search engine, go to Google Search Console and add it to removals. Google will remove that in few days.
Another problem mentioned by you is that several (main) pages on your site are not getting indexed as showing in the search console screengrab.
Kindly note that sometimes it is a false positive. To check if the links that are showing as not indexed are false positive or not. Simply copy the link and in google search, search it like site: "your link". For example: https://elesztohaz.hu/ is the first link that is shown in screenshort as not indexed.
In Google Search, search it like- site:https://elesztohaz.hu/
If you are getting the result it is indexed and just a false positive.

wordpress delivers wrong page

Currently running WordPress 4.9.5 using the Divi theme with Permalinks set to use Post name, I can enter a url (page title/name) that does not exist on the site and WordPress will deliver a page that has the “filename” part of the url somewhere in the title/name of the page it delivers but is different than the actual url.
For example, if you go to http://space.nss.org/renew/
Instead of getting a 404, WordPress delivers the page http://space.nss.org/renewable-energy-partnership/
What on Earth is WordPress thinking?
What can I do to identify the exact nature of the problem and fix it?
Note that this behavior is not universal as I can enter bad urls (like space.nss.org/armstrong/) and do get the expected error page.
Thanks in advance, Jim.
NOTE: The url referenced above (space.nss.org/renew/) has now been fixed so its original behavior is no longer exhibited.
With respect to my problem, it turns out that Wordpress is just trying to help by assuming that humans do not know how to type.
When I type "space.nss.org/renew/" and Wordpress doesn't find an exact match, it looks for anything it can find containing the string "renew"
and delivers what it considers to be the best match as a way of avoiding delivering a 404 page to the visitor.
This feature can be turned off but there are consequences in that the 'redirect_canonical' is also responsible for resolving domain name issues (like www.domain.com vs domain.com). For reference, see https://codex.wordpress.org/Function_Reference/redirect_canonical
Following are references on the subject I found once I knew what I was looking for.
[https://wordpress.stackexchange.com/questions/3326/301-redirect-instead-of-404-when-url-is-a-prefix-of-a-post-or-page-name]
2
[https://serverfault.com/questions/776310/how-to-disable-the-automatic-redirection-in-wordpress-htaccess-file]
3
[http://biostall.com/prevent-wordpress-redirecting-to-nearest-matching-url/]
Looking at the network log it appears there is a 301 redirect placed on /renew to go to /renewable-energy-partnership
As a solution you could remove the redirect so that it goes to the 404 page instead.

Google Search Results Page

Google Search Results shows different variations when searched the Website name with adding a space. I am Using WordPress Yoast Plugin.
Sometimes the results just show as a link and sometimes the results shows with the Inner Page Link details as well?
Does anyone can help what makes that happen?
See Attached Sample
The inner page links you are referring are called termed as site-links by google, and these site-links are picked up by google based on your website ranking/traffic/popularity the more old/famous your site the fast site-links will be picked-up by google.
The search result is depends on the search phrase you use, Google will always match the search term with the title of the site, if more close the match the higher probability of pulling the site links.
You can also user google search console to demote the links to appear in google search.
And the Yoast SEO plugin will give you the options to title,describe,keyword every post and page of wordpress site, but this plugin/ any other plugins have no direct effect on this site links.

After deleting a web page it still shows in the search engines, why?

I am new to this but I was asked to help out at work with modifications of our web site, one of the first things I was asked to do was remove the page for a product we no longer stock. I removed the page and links so when you are on the site you do not have the option to even see the product.
So before changes where made you would navigate to "http://example.com" when pressing on lighting you would navigate to "http://example.com/lightbulb" showing the inventory.
Now with the changes in place there is no way to navigate to the product because it was removed when I type "http://example.com/lightbulb" in my url I get 404 page can not be found which is the desired behavior.
But when performing a Google search on "light bulb", Google is listing http://example.com/lightbulb as a an available domain with the same summary as before. Obviously when navigating to it, you get the 404 error, page can not be found,
What did I forget to do, so that search engines no longer list http://example.com/lightbulb with the summary?
Google robots does not crawl the website everyday but after a certain interval.
I would suggest you to create an account on Google Webmaster tools and check your website's indexing status.
Moreover using the tool, you can also make a request to Google to re-index your website.
Hope it helps you some extent.
It takes time for the search engines to update. In the meantime, you can add a "HTTP-301 Permanently Moved" redirect-script in the /lightbulb directory, by creating an 'index.php'-file and adding this code:
header('Location: http://example.com/', true, 301);
exit;
It will tell browsers and search engines that the new URL for your page is http://example.com/

Problems with Drupal 7's clean URLs

I've looked around and I couldn't find an answer to my question so here it is.
Clean URLs are enabled on my Drupal 7 website and are "working" in the sense that I can access the About Us page with www.mysite.com/about-us and with www.mysite.com/node/12.
However, usually with Wordpress and the get_permalink() function, every menu/links like ?p=12 get redirected/rewritten to /about-us. But with Drupal, my menu links are in the form node/12 , and when I click on a link I get the page /node/12, not /about-us.
Any idea how I can get the rewriting/re-routing done automatically?
Thanks!
Your best bet would be the Global redirect module. The first of its many functions is:
Checks the current URL for an alias and does a 301 redirect to it if it is not being used.
I've used it in just about every Drupal site I've ever made and it works well.

Resources