Looking for a plugin to display estimated delivery dates on your WooCommerce website? Check out our list of the best options available, and start providing your customers with reliable shipping information.
Looking to sell digital products? Don’t miss out on these 4 must-have WordPress plugins that will revolutionize your online sales. Take your website to the next level now!
Looking for the best restaurant WordPress plugins? Check out our list of the top 8 plugins, including free and pro options, to enhance your website and attract more customers.
Struggling to securely password protect your WordPress site or certain content? Explore effective methods without impacting site performance. We have your solution!
Looking for the best WordPress plugins to enhance your development process? Check out our list of top-rated plugins for developers. Start improving your website today!
Looking for the best WooCommerce address validation and autocomplete plugins? Check out these 7 must-have tools for hassle-free checkout and accurate shipping. Click here!
Are you looking for an easy way to find 404 error pages on your WordPress website and redirect them?
404 errors occur when users try to reach a page on your website that no longer exists. These errors create a bad user experience, which can lead to a drop in search engine rankings and lower eCommerce sales.
In this article, we will show you how to easily track 404 pages and redirect them in WordPress.
What Is a 404 Error?
A 404 error is an HTTP status code that shows that the server couldn’t reach the web page you are trying to visit.
This means that if you enter a URL of a web page that does not exist, then you will see a ‘404 Page Not Found’ error.
Now, there are many reasons why the 404 error occurs. It could be because the visitor made a mistake when entering the URL, the page was deleted from the website, or the domain name no longer exists.
Another cause of the 404 error is when a page was moved to another URL but wasn’t properly redirected, resulting in a broken link.
Finally, sometimes server malfunctions can also lead to 404 errors on a WordPress website.
Why Track and Redirect 404 Pages in WordPress?
Now that you know the different causes of 404 errors, let’s take a look at why it’s extremely important for website owners to track 404 errors and fix them.
404 errors are bad for your site’s user experience. If users can’t find the page they are looking for, then they will likely leave your site and go to your competitors.
This means you will lose potential customers and miss an opportunity to convert your visitors into subscribers.
Aside from that, 404 errors have a negative impact on your WordPress SEO rankings. Search engine ranking algorithms often penalize websites when they run into broken links.
Not to mention, these broken pages will cause you to lose valuable backlinks for your website, which results in lower domain authority and a significant drop in Google keyword rankings.
With that being said, let’s take a look at how you can easily track 404 pages and redirect them in WordPress. We will cover two different methods, so feel free to click the links below to jump ahead to your preferred method:
If you’d prefer written instructions, then just keep reading.
Method 1: Track & Redirect 404 Pages Using AIOSEO (Recommended)
The easiest way to track and fix 404 pages on your WordPress website is by using the All in One SEO plugin for WordPress, which is also known as AIOSEO. It’s the best SEO WordPress plugin that is used by over 3 million professionals.
AIOSEO allows you to easily find pages with broken links and fix them with just a few clicks using its powerful Redirection Manager.
The best thing about AIOSEO is that it helps you set up faster 301 redirects, which helps you improve search engine rankings.
For this tutorial, we will be using the AIOSEO Pro version because it includes the powerful Redirection Manager addon. There is a free version of AIOSEO, but it doesn’t include 404 monitoring or the Redirection Manager.
First, you will need to install and activate the AIOSEO Pro plugin. For more details, please see our step-by-step guide on how to install a WordPress plugin.
Activating Redirects and Enabling 404 Error Logs in AIOSEO
Once the plugin is active, you can go to All in One SEO » Redirects and click the ‘Activate Redirects’ button.
After that, you need to visit the ‘Settings’ tab under Redirects and configure the plugin to keep 404 logs and track pages with broken links.
Simply scroll down to the ‘Logs’ sections and make sure that the ‘404 Logs’ option is enabled. Next, select the time period to record the 404 logs using the dropdown menu. We recommend no longer than one month for optimal server performance.
Once you are done, go ahead and click the ‘Save Changes’ button.
You will now see a ‘404 Logs’ tab in the Redirects section in AIOSEO. When you first enable 404 logs, this page will not have any data because it only starts monitoring 404 pages after you enable the setting.
In time, it will show a list of all the URLs that have a 404 error. You will see how many times someone tried to visit the link in the ‘Hits’ column and the date when it was last visited in the ‘Last Accessed’ column.
Once you have identified the pages with broken links, you can simply redirect them by clicking the ‘Add Redirect’ button. You should redirect the URL to a relevant page on your website.
When you click the button, you will see the option to enter a target URL and select the redirection type from the dropdown menu.
For example, you can move a page permanently by selecting the ‘301 Moved Permanently’ option.
After that, click the ‘Add Redirect’ button, and your broken link will now automatically redirect to the new target URL.
Clearing 404 Error Logs in AIOSEO
With time, the size of your log file can grow and take up a lot of disk space. A lack of WordPress hosting disk space can lead to errors. To make sure that you don’t run into this problem, it’s a best practice to delete and clear 404 error logs.
With AIOSEO, you can easily delete any individual 404 error from your logs by clicking the trash can icon.
You can also bulk delete your 404 logs by going to All in One SEO » Tools and then clicking on the ‘Database Tools’ tab.
Now, just scroll down to the ‘Logs’ section and click the ‘Clear 404 Logs’ button.
Permalink Monitoring in AIOSEO
Aside from tracking 404 errors, the AIOSEO Redirect Manager also comes with permalink monitoring. This means that if you delete a page on your site, or change the URL of any blog post, then AIOSEO will automatically notify you to set up a redirect.
In some cases, AIOSEO can even set up the proper 301 redirects for you without any effort.
Bonus Tip: Set Up Faster 301 Redirects in WordPress With AIOSEO
AIOSEO also allows you to set up faster redirects by going to the ‘Settings’ tab and choosing the ‘Web Server’ redirect method.
This allows you to unlock significant speed improvements when compared to the default WordPress/PHP redirect method.
Method 2: Track & Redirect 404 Pages Using the Redirection Plugin
The next method to track and redirect 404 errors is by using the free Redirection Plugin for WordPress. This is an advanced plugin, so some beginners may find it harder to use.
First, you need to install and activate the plugin. For more details, please see our step-by-step guide on how to install a WordPress plugin.
Upon activation, go to Tools » Redirection and then scroll down and click the ‘Start Setup’ button to set up your redirects.
After that, the plugin will ask whether you would like to monitor permalink changes in WordPress and keep logs of redirects and 404 errors.
Just select the checkbox for these options and click the ‘Continue Setup’ button.
The plugin will now test the REST API status.
When the status result comes back as ‘Good’, you can click the ‘Finish Setup’ button.
After that, the plugin will set up redirection. This will take several seconds, and when it is complete, you will need to click the ‘Continue’ button and then the ‘Ready to begin!’ button.
Now, you can start to redirect your 404 pages.
Simply enter the URL of the page you want to redirect in the ‘Source URL’ column.
Next, select whether you’d like to exactly match the query parameters, ignore them, or pass them through to the target URL from the ‘Query Parameter’ dropdown menu.
Now, you need to enter the Target URL to where the 404 page will be redirected, keep the Group option as ‘Redirection’, and click the ‘Add Redirect’ button.
If you want more options to set up redirection, then just click the gear icon next to the ‘Add Redirect’ button.
You can begin by adding the old URL showing 404 in the ‘Source URL’ field, selecting the Query Parameter like before, and adding a title to describe the purpose of this redirect.
After that, select the ‘Match’ option from the dropdown. You will see multiple options, including URL only, URL and referrer, URL and user agent, and URL and login status.
In most cases, you want to use the ‘URL and referrer’ setting. That’s because if you see several 404 requests for a specific page, then those users probably clicked on the same link to the wrong URL rather than all typing the same wrong web address.
Now, whenever someone else clicks on the broken URL, it will automatically redirect them to the new location.
Next, make sure that your action is ‘Redirect to URL’. The other options are complex and require advanced technical knowledge.
For the redirection type, you need to select an option from the HTTP code dropdown. For a permanent redirection, this should be ‘301 – Moved Permanently’.
Lastly, enter the target URL in the ‘Matched Target’ field. After you have entered this information, just hit the ‘Add Redirect’ button.
You can go to the new URL to test and make sure that the redirection is working properly.
The plugin also has the option to track 404 error logs. Simply click on the ‘404s’ tab at the top, and the plugin will show you recent 404 errors that occurred on your site since you installed the plugin.
Note: If you just enabled the Redirection plugin, then the 404 log page will be empty. It only starts keeping a log of 404 errors after the plugin is activated.
Bonus: Design a Custom 404 Page With SeedProd
Setting up redirects means that visitors shouldn’t run into many 404 error pages on your WordPress website. However, if they do land on a 404 page, it’s a good idea to have a custom design that will help out your users.
Including your custom branding can make your 404 page look more reputable. Adding a contact form can allow users to tell you the address they entered that triggered the 404 error. You can even include links to your popular posts or products so that visitors will be tempted to stay on your website.
Luckily, it’s easy to design a custom 404 page with SeedProd. It’s the best WordPress landing page builder and comes with plenty of customizable templates for 404 pages.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
WordPress isn’t just a mere content management system, you can do so much more with it. By optimizing your site with the best eCommerce plugins for WordPress, you can turn it into a stunning and profitable online store that rivals the finest digital stores out there.
Placing banner ads on your site is one of the most common ways to make money from your blog. Many bloggers use ad management software to maximize their ad earnings without ruining the user experience.
In this article, we will show you how to manage ads in WordPress with the AdRotate plugin.
Why Use a WordPress Ad Management Plugin?
Advertising programs like Google Adsense and others require publishers to add a code snippet on their website for displaying ads.
If you are a beginner who just started your blog, then adding code into theme files is not an ideal solution. You cannot properly manage different ad sizes or their placements. You also increase your chances of messing up and causing unexpected WordPress errors.
On the other hand, using an ad management plugin allows you to easily insert ads anywhere on your website. You can save multiple ad codes, rotate them, and show / hide ads on different pages.
Let’s take a look at how to manage ads in WordPress like a pro using the AdRotate plugin.
Upon activation, you need to visit AdRotate » Manage Adverts page and click on the ‘New Advert’ link to create your first ad.
This will bring you to the add new ad page. You need to provide a title for your ad because it will help you identify this ad inside the WordPress admin area.
After that, you can paste the ad code generated by your advertising network like Adsense. Alternatively, you can also generate your own ad code if you are running self-hosted ads.
For hosted ads, you can upload banner images and enable click tracking.
You need to select the activate option to make this ad available on your WordPress site.
Next, you need to scroll down on the page to the usage and schedule section. Here you can schedule your ad and get the shortcode which you can add to your posts, pages, or sidebar widgets.
Don’t forget to click on the ‘Save Advert’ button to store your settings.
You can repeat this process to create as many ads you want and then decide which ads you want to be displayed on your site.
Grouping Your Ads Together
Many WordPress bloggers join multiple advertising networks and partner programs. You may also have advertising spaces on different locations and in different sizes.
Grouping allows you to easily sort your ads into different categories for easier management.
To create a new group, head over to AdRotate » Manage Groups page and click on the ‘Add New’ link.
This will bring you to the create new group page.
First you need to provide a title for your group. This will allow you to easily identify the group in your WordPress admin area.
Next, you need to choose a display mode. AdRotate allows you to customize how you display ads from a specific group.
For example, you can display one ad from the group at a time, a block of ads, or dynamic mode which changes the ad after few seconds.
Next, you can select the group auto display options. AdRotate allows you to automatically insert ads from a group into posts, pages, and sidebar widgets.
At the bottom of the page, you will see all your ads that you can associate with that group. Simply select the ads that you want to include and then click on ‘Save Group’ button.
Manually Inserting Ads in WordPress
While you can associate your ads to groups and automatically insert them into posts, pages, categories, and widgets, some publishers may want to have more granular control on which ads to display on which location.
AdRotate makes it super easy to insert ads anywhere on your WordPress site.
Each ad you create on your site has its own shortcode that you can copy and paste into your WordPress posts or pages and even custom post types.
Go to AdRotate » Adverts and click on any ad to edit it. On the Edit Ad page, you need to scroll down to the usage section to copy the shortcode.
Similarly, you can also edit a group to get the shortcode and then use it anywhere on your website.
If you want to display ads in your WordPress sidebar, then go to Appearance » Widgets page and add the AdRotate widget to your sidebar.
We hope this article helped you learn how to manage ads in WordPress with the AdRotate plugin.
Are you looking for an easy way to add a coupon code field to your WordPress forms?
By adding a coupon code field in your forms, you can offer discounts to your customers and increase sales during slow periods.
In this article, we will show you how to easily add a coupon code field in your WordPress forms.
Why Add Coupons to Your WordPress Forms?
Adding a coupon code field to forms on your WordPress website can encourage users to buy from you.
For example, if you have an order form for your restaurant, then adding a coupon code for discounts can help attract new customers and encourage repeat purchases.
You can also use coupons to promote clearance sales or new products in your online store, celebrate events, or reward loyal customers.
Moreover, you can also use a coupon code field to build an email list by offering discount codes to customers who sign up as subscribers.
That being said, let’s see how to easily add a coupon code field in WordPress forms.
How to Add Coupon Code Field in WordPress Forms
You can easily add a coupon code field in a WordPress form using WPForms.
It is the best WordPress contact form plugin on the market that comes with a drag-and-drop builder and makes it super easy to create any kind of form you want.
First, you will need to install and activate the WPForms plugin. For detailed instructions, please see our step-by-step guide on how to install a WordPress plugin.
Note: WPForms also has a free version. However, you will need a paid plan to unlock the Coupons addon.
Upon activation, you need to head over to the WPForms » Settings page from the WordPress admin sidebar and enter your license key.
You can get this information from your account on the WPForms website.
Next, visit the WPForms » Addons page from the WordPress dashboard and search for the Coupons addon.
Once you have done that, just click the ‘Install Addon’ button to download and activate it on your website.
After the addon has been activated, head over to the WPForms » Payments page from the admin area and switch to the ‘Coupons’ tab.
From here, you need to click the ‘+ Add Coupon’ button to continue.
This will take you to the ‘Add New Coupon’ page, where you can start by typing a name for your coupon. Keep in mind that this name won’t be displayed for your users and is just for your reference.
After that, you have to type the code that users will use to get a discount on your website.
If you don’t want to create a custom code, then simply click the ‘Generate Code’ button to let WPForms generate a code for you.
Next, you need to add the percentage or amount of discount that will be given to the customers upon using the coupon in the ‘Amount’ field.
Once you have done that, you can also add a start date and end date for the coupon code. For example, if you want to create a coupon that will only be valid for a week, then you can add those dates into the fields.
After that, you must add the maximum number of times a single user can use the coupon code in the ‘Max Uses’ field.
Now, you have to scroll down to the ‘Allowed Forms’ section on the page. From here, toggle the switch on next to the form where you want to enable the coupon code.
Finally, click the ‘Save Coupon’ button to store your settings.
Add the Coupon Code to a WordPress Form
Now, you need to open the form where you want to add the coupon code field.
To do this, visit the WPForms » All Forms page from the WordPress dashboard and click the ‘Edit’ link under the form where you want to add a coupon field.
This will launch the form in the form builder. For this tutorial, we will be adding a coupon code field to a takeout order form.
Here, you will notice available fields in the left column and a form preview on the right side of the screen. Simply drag and drop the Coupon field into the form.
Once you have done that, you must click on the field to open its settings in the left column.
Next, choose the coupon that you created earlier from the ‘Allowed Coupons’ dropdown menu.
After that, you can add a label or description for the coupon field and also toggle on the ‘Required’ switch.
If you do this, then users won’t be able to submit the form without filling in the coupon code.
Next, switch to the ‘Payments’ tab to configure settings. With WPForms, you can easily accept payments from popular gateways like Stripe, PayPal, Authorize.net, and more.
All you have to do is activate the addon for the gateway of your choice and then toggle the switch to enable it from the form builder.
Next, switch back to the ‘Fields’ tab and drag and drop the field for the payment gateway of your choice into the form.
Now, you will be able to accept payments directly from WPForms after the user applies the discount coupon code.
Once you are done, just click the ‘Save’ button at the top to store your settings.
Add the WordPress Form to a Page/Post
Now, it’s time for you to add the Takeout form with the coupon code to a WordPress page or post. Keep in mind that if the form where you added the coupon code field is already published on a page/post of your website, then it will automatically be updated.
However, if you haven’t added the form yet, then open an existing or new page/post from your WordPress dashboard.
From here, click the ‘+’ button to open the block menu and add the WPForms block.
After that, you need to choose the form with the coupon code field from the dropdown menu inside the block.
Next, click the ‘Update’ or ‘Publish’ button to store your settings.
Now, you can visit your WordPress site to view the form with a coupon field in action.
Add a Message for Coupon Errors
If you also want to display a message to users who enter the wrong coupon code, then you must visit the WPForms » Settings page from the WordPress dashboard.
From here, switch to the ‘Validation’ tab and scroll down to the ‘Coupon Error’ option. After that, type the sentence that will be displayed to users upon entering the wrong code.
Once you are done, just click the ‘Save Settings’ button to store your changes.
Now, if users enter the incorrect coupon code, then they will see your error message.
Track Coupon Usage With WPForms
With WPForms, you can also track the number of times your coupon was used to get a discount. This can help you see if your coupon codes and discounts are effective in driving sales or not.
To view your coupon usage, just visit the WPForms » Payments page from the WordPress admin sidebar.
You will see a summary chart of coupon usage on your WordPress site in the ‘Overview’ tab.
From here, you can also click on the ‘Total Payments’ tab to view individual payments and see which customers used the coupon code on your site.
This will help you decide if adding the coupon code field has helped you generate more revenue and been a successful campaign or not.
Bonus: More Tips for Using Coupons in WordPress
Coupon marketing is one of the most effective ways to get more sales and grow customer loyalty. Apart from adding coupon fields to your WordPress forms, you can also use coupons to promote a new product, clearance sale, special events, or more.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.