From the course: HTML and CSS: Linking

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Redirecting links on the server

Redirecting links on the server

From the course: HTML and CSS: Linking

Start my 1-month free trial

Redirecting links on the server

- [Narrator] When you redesign a website, it's common for all of your links to change. All of the people who bookmarked your site all over the web, or the other sites that currently linked to you might have their links break, resulting in a 404 "Page not found" errors, it's a headache for everyone. Fortunately, there are ways to set up link redirects on the server, most commonly used is the 301 redirect or the permanent redirect. There are many other types of redirects on the servers, like 302, 303, 307 and 308 redirects, but let's not get too geeky as these other types of redirects have very specific use cases. Generally speaking a 301 redirect is the one that you want. In any case the goal is to redirect the old URL to the new URL, this can be done on a page by page basis, or it can be done on mass with a type of code called a regular expression. Redirects may be configured in the .htaccess file of the website or in the server configuration files. If you're working in a content…

Contents