{"id":21717,"date":"2026-01-03T08:39:49","date_gmt":"2026-01-03T06:39:49","guid":{"rendered":"https:\/\/www.insertioweb.com\/?p=21717"},"modified":"2026-06-22T12:58:48","modified_gmt":"2026-06-22T10:58:48","slug":"301-preusmjeravanje","status":"publish","type":"post","link":"https:\/\/www.insertioweb.com\/en\/301-preusmjeravanje\/","title":{"rendered":"301 Redirect"},"content":{"rendered":"<h2 class=\"wp-block-heading\">What is a 301 redirect?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">HTTP status code <strong>301<\/strong> indicates that the requested resource <strong>permanently relocated<\/strong> to a new address. It is often referred to as <strong>301 Moved Permanently<\/strong> and makes it clear to browsers and search engines that the old URL address is no longer valid.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have been running a website for some time, it is very likely that you have \u2013 knowingly or not \u2013 changed the structure of the URLs. This happens, for example, when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Switch the web from <strong>https<\/strong><\/li>\n\n\n\n<li>change <strong>permalink structure<\/strong><\/li>\n\n\n\n<li>change <strong>domain name<\/strong><\/li>\n\n\n\n<li>modify the URL of a particular page<\/li>\n\n\n\n<li>delete the page<\/li>\n\n\n\n<li>move the page to another location<\/li>\n\n\n\n<li>connect multiple pages into one<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on the changes, visitors and search engine bots may encounter <strong>404 Not Found<\/strong> error or end up on the wrong version of the page. To avoid this, it is used <strong>301 redirects<\/strong>. In this way, anyone who visits the old address will automatically be redirected to the new one, and search engines will update their indexes over time and remember the new URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Status code <strong>301 Moved Permanently<\/strong> Belongs to a group <strong>3xx HTTP status codes<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>3<\/strong> indicates that it is a redirection<\/li>\n\n\n\n<li><strong>xx<\/strong> represents two additional digits that determine the exact type of redirection<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How the 301 redirect works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">301 redirection takes place automatically between the browser and the server, without the need for any action on your part. In practice, the whole process looks like this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on the link or enter the URL address in the browser address bar<\/li>\n\n\n\n<li>The browser sends the HTTP request to the server to access the resource at that address<\/li>\n\n\n\n<li>The server returns the response with the status code <strong>HTTP 301<\/strong> and in the header <strong>Location<\/strong> Provides a new resource address<\/li>\n\n\n\n<li>The browser then automatically sends a new request to the server, this time to a new location<\/li>\n\n\n\n<li>The server retrieves the requested resource and sends it to the browser<\/li>\n\n\n\n<li>The browser displays the content to the user<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For the user, the whole process is almost imperceptible, while search engines clearly receive the information that the content has been permanently moved to a new URL.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"768\" height=\"1099\" src=\"https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje.webp\" alt=\"301 redirects\" class=\"wp-image-21719\" style=\"aspect-ratio:0.6988204531413876;object-fit:cover\" srcset=\"https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje.webp 768w, https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje-210x300.webp 210w, https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje-716x1024.webp 716w\" sizes=\"(max-width: 768px) 100vw, 768px\"><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The above explanation serves only as a simplified representation. Browsers and servers communicate with each other through <strong>Hypertext Transfer Protocol (HTTP)<\/strong>, so all requests and answers are exchanged in HTTP format.<br>For example, a browser that wants to access a website at <strong>yourdomain.com<\/strong> will send the next HTTP request to the server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-base-3-color has-contrast-background-color has-text-color has-background has-link-color wp-elements-17145ee37b1f7d3e79951f7fea69c670\">GET \/index.html HTTP\/1.1 Host: yourdomain.com<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>The server will then respond with the HTTP status code <strong>301<\/strong>, indicating that the page has been permanently moved. The reply will also include: <strong>Current resource location<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-base-3-color has-contrast-background-color has-text-color has-background has-link-color wp-elements-c4d7cbb59aedbfe66ba0f97500d52e1e\">HTTP\/1.1 301 Moved Permanently Location: https:\/\/yourdomain.com\/home<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>The browser then sends a new request to the server and asks for access to the address <strong>https:\/\/yourdomain.com\/home<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-base-3-color has-contrast-background-color has-text-color has-background has-link-color wp-elements-334448cacad4886f55ed685dd0d9588f\">GET \/index.html HTTP\/1.1 Host: https:\/\/yourdomain.com\/home<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The server then sends the files located at the address to the browser <strong>https:\/\/yourdomain.com\/home<\/strong>, The browser then displays them to the visitor. Status code <strong>301<\/strong> As a rule, it is invisible to the user. However, redirection can be observed if you pay attention to changing the URL in the address bar \u2013 from the address you initially entered to the one that appears after the page is loaded.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why 301 redirects are important<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">301 redirects provide your website with numerous benefits for the SEO and user experience. It helps to keep your site ranked in search engines and to ensure that visitors do not encounter problems when using the site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">301 redirects keep link equity and PageRank<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Google assigns value to each page based on the quality and number of links that lead to it. This value is called PageRank and is used to determine the position of your page in search results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The pages also transmit the equity link when they link to your pages. The more quality links you have, the greater the amount of equity link you receive and the greater your PageRank.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you move a page to a new URL without redirecting it, you lose the equity link and PageRank associated with the old page. With 301 redirects, the value is transferred to a new URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">301 redirects help Google determine the canonical version of the page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Most pages are available via multiple URLs, e.g. yourdomain.com and www.yourdomain.com lead to the same homepage.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google recognizes these pages as duplicate and selects one as the canonical version, i.e. the main version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Although Google uses multiple methods to determine the canonical page, 301 redirects are a powerful signal that you want Google to consider the new URL address to be the main one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">301 redirects improve user experience<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you move a page without 301 redirects, visitors visiting the old URL address will encounter 404 errors. This creates a bad user experience and often forces them to click back or go to another page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By setting 301 redirects, your visitors can still access the content, even after changing the URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">301 redirects keep your return links<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Many pages periodically perform SEO audits and check if there are broken external links, i.e. links that lead to non-existent pages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If other sites link to your site and you delete content without 301 redirects, these links will lead to 404 pages. A linking site can detect broken links and replace them with competition links.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To avoid this, set up 301 redirects that redirect old URLs to new ones. So the chances that the linking page removes your link are much less.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Google's recommendation to use 301 redirects<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to rank on Google, it's important to follow Google's 301 redirect guidelines. Consider them best practice for maximum redirection efficiency.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Use 301 only if you won't return to your old URL<\/strong> Google recommends 301 redirects when you are sure that you will never return to your old address again. If there is a possibility of return, prefer to use temporary redirection like 302 Found.<\/li>\n\n\n\n<li><strong>Use meta refresh if you can't set 301 redirects<\/strong> If you cannot set up 301 redirects, e.g. due to limited access to the server, Google recommends using meta redirects as an alternative.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Redirect old pages to corresponding new pages<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">When changing the URL of your site, Google recommends that you redirect the old pages to the corresponding pages on the new URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if you switched from yourdomain.com to example.com, redirect the homepage from yourdomain.com to example.com. The same applies to individual pages, e.g. yourdomain.com\/what-is-yoga redirect to a new location example.com\/what-is-yoga.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Avoid long redirect chains<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Google advises that, whenever possible, you avoid redirect chains.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A redirect chain occurs when multiple redirects occur between the initial and the final URL. For example: URL A redirects to URL B, which redirects to URL C and then finally to URL D.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google usually tracks only four or five redirects before it stops. To make sure that Google tracks your 301 redirects, it is recommended to keep the redirects in one or two steps, a maximum of three.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Leave redirects for at least a year<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If, for example, you are changing a domain from yourdomain.com to example.com, Google recommends that you leave the redirects active for a year or more before you leave the old domain or use it for other purposes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is because 301 redirects work at the level of individual pages. Google must review every old page and track where it leads in the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, Google has to go through the old pages several times to make sure that you have permanently moved the content. If it comes across pages without 301 redirects, it can assume that you are still using the old domain.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h4 class=\"wp-block-heading\">Update internal links and sitemaps<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">When you set up 301 redirects, Google recommends that you update internal links, sitemaps, and other links to show a new URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By doing so, you confirm to Google that the content has actually been moved and increase the chance that the new page will be recognized as a canonical version of the resource.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>\u0160to je 301 preusmjeravanje? HTTP statusni kod 301 ozna\u010dava da je tra\u017eeni resurs trajno premje\u0161ten na novu adresu. \u010cesto se naziva i 301 Moved Permanently te preglednicima i tra\u017eilicama jasno &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"301 Redirect\" class=\"read-more button\" href=\"https:\/\/www.insertioweb.com\/en\/301-preusmjeravanje\/#more-21717\" aria-label=\"Read more about 301 preusmjeravanje (Redirect)\">READ MORE<\/a><\/p>","protected":false},"author":1,"featured_media":21719,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"tpgb_global_settings":"","footnotes":""},"categories":[26],"tags":[],"class_list":["post-21717","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rjecnik","infinite-scroll-item","resize-featured-image"],"tpgb_featured_images":{"full":["https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje.webp",768,1099,false],"tp-image-grid":["https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje-700x700.webp",700,700,true],"thumbnail":["https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje-150x150.webp",150,150,true],"medium":["https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje-210x300.webp",210,300,true],"medium_large":["https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje.webp",768,1099,false],"large":["https:\/\/www.insertioweb.com\/wp-content\/uploads\/2026\/01\/301-preusmjeravanje-716x1024.webp",716,1024,true],"default":"https:\/\/www.insertioweb.com\/wp-content\/plugins\/the-plus-addons-for-block-editor\/assets\/images\/tpgb-placeholder.jpg"},"tpgb_post_meta_info":{"get_date":"January 3, 2026","get_modified_date":"June 22, 2026","category_list":{"category":[{"term_id":26,"name":"Rje\u010dnik","slug":"rjecnik","term_group":0,"term_taxonomy_id":26,"taxonomy":"category","description":"","parent":0,"count":35,"filter":"raw"}],"post_tag":false,"post_format":false},"author_name":"insertio","author_url":"https:\/\/www.insertioweb.com\/en\/author\/insertio\/","author_email":"insertioweb@gmail.com","author_website":"https:\/\/www.insertioweb.com","author_description":"","author_facebook":"","author_twitter":"","author_instagram":"","author_role":["administrator"],"author_firstname":"","author_lastname":"","user_login":"insertio","author_avatar":"<img alt='' src='https:\/\/secure.gravatar.com\/avatar\/00193c03147a29b56101ea2b24b996a323f330ba78cd3f9e84b29d7df878638a?s=200&#038;d=mm&#038;r=g' srcset='https:\/\/secure.gravatar.com\/avatar\/00193c03147a29b56101ea2b24b996a323f330ba78cd3f9e84b29d7df878638a?s=400&#038;d=mm&#038;r=g 2x' class='avatar avatar-200 photo' height='200' width='200' decoding='async'\/>","author_avatar_url":"https:\/\/secure.gravatar.com\/avatar\/00193c03147a29b56101ea2b24b996a323f330ba78cd3f9e84b29d7df878638a?s=96&d=mm&r=g","comment_count":0,"post_likes":0,"post_views":0},"tpgb_post_category":{"category":"<a href=\"https:\/\/www.insertioweb.com\/en\/category\/rjecnik\/\" alt=\"Rje\u010dnik\"  class=\"category-rjecnik\">Rje\u010dnik<\/a> "},"_links":{"self":[{"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/posts\/21717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/comments?post=21717"}],"version-history":[{"count":13,"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/posts\/21717\/revisions"}],"predecessor-version":[{"id":21989,"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/posts\/21717\/revisions\/21989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/media\/21719"}],"wp:attachment":[{"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/media?parent=21717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/categories?post=21717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insertioweb.com\/en\/wp-json\/wp\/v2\/tags?post=21717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}