Since broken links can hurt your site rankings as well as the visitor experience, it's critical to avoid them. Why You Need a Redirect PluginĪ redirect plugin will automate the redirecting process and maintain your site’s health in tip-top shape. That’s why WordPress site owners use a plugin. It would take hours of unnecessary and repetitive work. It’s easy enough, but imagine doing this for every redirect you want to set up. You can now save the file and exit File Manager. Place the following code at the end of the file, and don’t forget to change the slugs and URL to the correct ones. Then you’d copy and paste the slug of the old or outdated post, then the URL of the new post. Let’s say you want to redirect an outdated post to a more recent one. Now, go to public_html in File Manager, and create a new text file. To do so, go to File Manager and select the. If you have access to your server files and your server runs on Apache software, you’ll need to add the code to your hypertext access (.htaccess) file to manually set up redirects.Ĭonsidering that one mistake in this file can break your whole site, it’s important to make a back-up of this file first. Under “Server,” you’ll find out whether you’re on the Apache infrastructure. To find out whether your site is running on Apache, go to SiteReport, input your URL, and scroll down to the SSL/TLS section. Your site must also be running on Apache software. To manually set up a redirect in WordPress, you’ll need access to your website’s server files. Find out whether your site is running on Apache. How to Manually Redirect a Page in WordPress 1. If mail ever arrives at your old address, it will automatically be sent to your new home. Think of a 301 redirect as a mail forwarder service. What is a 301 redirect?Ī 301 redirect is a status code that tells a browser that the page it was trying to access has been permanently moved to another URL. When using a plugin, you’ll need to access the plugin’s settings in your WordPress admin menu, choose the URL you want to redirect, and then specify the new URL.įor most redirects, you’ll want to use a permanent 301 redirect. You can use two methods to redirect a URL in WordPress: Either edit your server files or use a redirect plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |