How does link redirecting work?

226 views

Like I understand hyperlinks, but how do you redirect a link to another link?? Can you be redirected twice?

In: 4

3 Answers

Anonymous 0 Comments

The most common link redirects are done as “rules” on the server.

For example, let’s say I rename a page on my website for from oldpage.html to newpage.html . I want to ensure that the benefit of any links and traffic looking for oldpage.html end up with newpage.html .

I just have to add a rule for this. On Apache servers this is done in a file called htaccess. These rules are checked whenever a page is requested – before it is loaded. When the server sees the request for oldpage.html it will serve up new page HTML to the user.

You can have multiple redirects too – either subsequent rules in the same file or bouncing users from one server to another. It’s best to have a single redirect if possible.

You are viewing 1 out of 3 answers, click here to view all answers.