After we’ve sent a request these assets will then give a response like “hey I’m here, let’s go!” (response code HTTP 200 OK). Although this sounds like a really cool name for a sci-fi cop movie it’s actually the process by which we request assets such as CSS, HTML and images from a server. HTTP response codesĮvery time we enter a URL or make a request from a browser we’re using the Hypertext Transfer Protocol (HTTP). So how do we that? Well, before we start we need to learn a little about HTTP. Also it would be nice if our redirects would report to search engines that this change is permanent so they should update accordingly. Here’s our example: we want /blog/post to redirect to /blog/post, along with all the other posts that use that same URL format. What we need is for those old links to redirect to the same content on our new site. However we don’t want all those pages from the old site to give a dreaded 404 Not Found. This is very useful if we want to redirect a certain page to a new location, change the URL structure of a site, remove the “Let’s say we’ve just moved our website and we want to shut down the old one. For instance, a person visits “/page-a” in their browser and they are redirected to “/page-b” instead. A redirect is when a web page is visited at a certain URL, it changes to a different URL.
0 Comments
Leave a Reply. |