Redirects and the 404 monitor
The Redirects and 404 tab (Baza Helper > Redirects and 404) sends visitors and search engines from an old address to a new one and keeps a list of addresses that return 404. Rules and the missing-address log live in their own database tables, so they stay fast.
Add a redirect
Step 1: Open the Redirects tab and press Add a
Open the Redirects tab and press Add a redirect.
Step 2: From (address on this site)
the old address, for example /old-page/.
Step 3: To
the new address or a full URL.
Step 4: Choose Match and Answer , add an optional
Choose Match and Answer, add an optional Group and press Add redirect.
Match types
- Exact address: the fastest lookup. A trailing slash and letter case can be ignored (see Settings).
- Starts with: every address that begins with the text.
- Regular expression: matched against the path. Use $1, $2 in the target for captured parts, for example from
^/blog/(.*)$to/news/$1. A broken pattern and a redirect loop are refused when you save.
Answers
301 Moved permanently and 308 Permanent keep the new address for search engines. 302 Found, 303 See other and 307 Temporary are for short-term moves, and 307 and 308 keep the request method. 410 Gone says the page was removed on purpose, and 451 says it is unavailable for legal reasons.
Manage the list
The table shows the source, the target, the answer, how many times a rule was used and when. Search it, filter by answer, match, status or group, switch single rules on or off, or select several and use With selected to turn them on, off or delete them. The list is paged, 25 rules at a time.
The 404 monitor
Missing addresses (404) lists addresses that visitors and bots asked for and no rule caught: the address, how often, when it was first and last seen and where the visitor came from. Open the filter icon to choose Seen at least, Who and Period. The options are links, and the choice is remembered for your user. Press Redirect on a row to fill the add form with that address, Remove to forget it, or Clear the list. The tab says No missing addresses have been seen until the first one appears.
Who asks for a missing address
Each row of the 404 list says who asked for the address. Baza Helper reads the browser name (the User-Agent) of the request and shows the kind of visitor with a small mark: Google’s ad bot, Googlebot, Bing and other search engines, AI crawlers, SEO services, scanners and probes, or an ordinary visitor. A request for a place where leaks and logins are looked for, such as /.env or xmlrpc.php, is shown as a probe whatever name it gives. Rows saved before this feature show Not recorded.
Filter and tiles
Open the filter icon and choose Who to see one group: Google (Ads and search), Other search engines, AI crawlers, SEO services, Scanners and probes, Visitors or Other. The tiles above the table show how many requests and how many addresses each kind made in the chosen period.
Is it really Google?
A name in the User-Agent can be faked. For Google, Bing, Baidu and Apple the plugin checks the request after the page has been sent: a reverse DNS lookup of the visitor’s address must name a host of that search engine, and a lookup of that host must give the same address back. The row is then marked as verified, or as not genuine when somebody only pretends.
Alert when Google’s bots find a missing page
If Google’s ad bot or Googlebot asked for a missing address in the last 7 days, a red alert appears above the table. Each line gives the address, who asked, how many times and when, with a button that opens the add form with that address. A request that failed the check above is not counted.
This matters for ads: an ad that points to a missing page can be disapproved with the reason “landing page does not work”, and a search result that points to one can be dropped. Restore the page or add a redirect.
The same warning shows in red in the WordPress admin bar, for example “Google’s ad bot found 2 missing pages”, and links to this tab. It can also be sent by e-mail (see Settings).
Import and export
Import accepts a CSV with the columns from, to, answer, match, on and group, a JSON export of this tool, or a JSON export of the Redirection plugin. Export CSV and Export JSON save your rules.
Settings
- Create a redirect when the address of a published page or post changes: a changed slug or parent makes a 301 in the group auto.
- Ignore a trailing slash and Ignore upper and lower case.
- Add the visitor’s query string to the target.
- Keep a list of missing addresses and Forget missing addresses after (days); the list keeps at most 2000 rows and is pruned daily.
- Never list addresses containing: one fragment per line for addresses you do not care about.
Redirects are matched very early in the request (template_redirect, priority 1). Deleting the plugin removes both tables when Delete all Baza Helper data is on in Access & data.
Note who asks for a missing address (Google, Bing, AI crawlers, scanners, visitors): on by default.
Keep the network of the visitor (the address with its last part cut off): off by default. When it is on, the list keeps only the network, for example 203.0.113.0, never the full address.
Warn in the admin bar when Google’s ad bot or Googlebot finds a missing page: on by default.
Also send the administrator an e-mail (once an hour for one address): off by default.
