How does url redirect work




















Please note that it's totally fine to use redirects for configuring your web server so that it serves URLs according your preferences. Even when link equity is maintained, redirects add load time to the user and bot journey. It's best to reduce redirects whenever possible.

Internal links should be direct. That being said, redirects are a completely normal part of a website. They just need to be handled correctly. This is obviously important from a user point of view, and because of that search engines deem it important as well. If you redirect to URLs that aren't relevant, you're risking search engines not consolidating the value of the old URL with the new one.

This results in what's called a soft error. When implementing redirects, it's best to use a target URL that closely resembles the original in both topic and intent. Too often, webmasters lazily redirect pages to their homepage or other off-topic pages, which can result in a soft , and Google dropping link equity through the redirect.

Let ContentKing help. Run a quick check with ContentKing to see what can be improved on your site and fix any redirect issues right away. When using redirects, be vigilant against chained redirects. It's important to avoid chained redirects for two reasons:. Then the authority arriving at URL D is: 0. It's important to choose a preferred version of your website URL and stick with it. Below we describe two important topics you need to think about when linking. Consistently using the preferred version of your website URL prevents unnecessary redirects, which cause loss of page authority.

For example: if you prefer to have your website on the www subdomain, make sure requests for URLs without the www subdomain are redirected to the version with the www subdomain. Remember: for search engines, www. Choose your preference when it comes to trailing slashes as well.

For search engines, www. If you prefer having a trailing slash: make sure requests to the version of the page without the trailing slash are redirected to the version with the trailing slash. When people link out to other sites, they sometimes make mistakes. They could introduce a combination of lowercase and uppercase characters into your URL. People will link to your website the way they want to. Often they won't adhere to your preferred version for your website URL.

When you've correctly configured your web server, visitors will end up at the right URL, but you'll lose a bit of authority in the redirect.

Monitor your inbound links with a tool such as Majestic or Ahrefs and reach out to the ones linking to the wrong version of your URLs. A lot of websites use campaign URLs to support their online and offline campaigns. After these campaigns end, their URLs are often just redirected.

That's often incorrect, because these campaigns may return one month later. When a campaign is simply temporarily inactive and will return in the future: use a redirect to be able to keep the campaign URL in the search engine indexes when you need it again.

If there's any doubt about it, use a redirect so that you basically have the URL on standby. Having hundreds of thousands of redirects may, depending on the way the redirects are implemented, slow a website down significantly.

On top of that, sometimes old redirects can play a vital role in strange website behavior. An old redirect could be causing inexplicable behavior within your website.

Keep things simple; keep the number of redirects within your website to a minimum. Periodically check which redirects are necessary and which can be cleaned up. These URLs can be found by analyzing the inbound links to pages on your website using services such as Majestic and Ahrefs combined with referral data from your web analytics service.

All URLs that redirect but have no inbound links and referring traffic can be removed. I prefer to clean up redirects where possible to preserve SEO authority, and I aim to have as little redirects as possible on internal links in general to reduce impact on Googlebot crawling. When prioritizing development resources on fixing redirects, I usually put an estimate of user impact being a ms delay for each hop.

IP canonicalization is the process of implementing redirects for an IP address to a domain name. This is done to prevent duplicate content. If your web server is set up incorrectly, it may serve your website for both your web server's IP address and your domain name. The strange user experience aside, having your website accessible to search engines through both your IP address and your domain name leads to duplicate content and should be avoided.

There's good news: this problem is not hard to solve. For example, if you're using Apache web server, this can be fixed by including the code below in your. Note: replace Please note that setting up URL redirects in a CMS has the benefit that it's much more accessible for people without a development- or system administration background, but it has several drawbacks:. Regular expressions RegEx are a language that can be used to search within text using patterns.

But in the second box, put in the full URL you want it to redirect it to. If you use the Gator Website Builder , select Edit Site for the website you want to set the redirect up for.

The select Manage on the menu on the left side of the screen, and Redirects on the menu that opens up from there. Click the Add Rule button. Enter the page you want to redirect in the box on the left. Select the type of redirect in the dropdown menu. Then, based on the type of redirect you selected, you can either choose the page you want the old URL to redirect to in the dropdown menu on the right, or you can enter the URL you want it to go to.

The easiest way to set up a redirect in WordPress is using a plugin. One popular option for this is Redirection. Click Add New, then perform a search for the plugin you want.

Click Install Now, then Activate. Each plugin will have its own instructions for how to use it. For Redirection, find it in your Installed Plugins list, click on Settings, then go through the setup instructions. Then click on Redirects in the menu at the top of the screen, and fill in the information for the URL you want to redirect, and the new URL you want it to point to.

When you created your site, you may have decided to create your blog page on a subdomain of your site. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.

For details, see the Google Developers Site Policies. Documentation Not much time? Beginner SEO Get started. Establish your business details with Google. Advanced SEO Get started. Documentation updates. Go to Search Console. General guidelines. Content-specific guidelines. Images and video. Best practices for ecommerce in Search. COVID resources and tips. Quality guidelines. Control crawling and indexing. Sitemap extensions. Meta tags.

Crawler management. Google crawlers. Site moves and changes. Site moves. International and multilingual sites. If you serve the response as the result of this request, a simple press of the reload button will resend the request possibly after a confirmation message. In this case, the server can send back a See Other response for a URL that will contain the right information.

If the reload button is pressed, only that page is redisplayed, without replaying the unsafe requests. In this case, the response is a See Other redirect that links to a page indicating that the action has been scheduled, and eventually informs about its progress, or allows to cancel it. Redirects can be set either in the server config file or in the. RedirectMatch does the same, but takes a regular expression to define a collection of affected URLs:.

If you don't want a temporary redirect, an extra parameter either the HTTP status code to use or the permanent keyword can be used to set up a different redirect:. It is more flexible, but a bit more complex. To apply a redirect to a directory or only certain pages, use the rewrite directive:.

Redirection loops happen when additional redirections follow the one that has already been followed. In other words, there is a loop that will never be finished and no page will ever be found. Most of the time this is a server problem, and if the server can detect it, it will send back a Internal Server Error. If you encounter such an error soon after modifying a server configuration, this is likely a redirection loop. Sometimes, the server won't detect it: a redirection loop can spread over several servers which each don't have the full picture.

In this case, browsers will detect it and display an error message. Firefox displays:. Firefox has detected that the server is redirecting the request for this address in a way that will never terminate.



0コメント

  • 1000 / 1000