Tel: 0151 223 0001

We believe in three things: users, users, users.

301 Redirect with .htaccess

301 Redirect with .htaccess - brought to you by sdesign1 - Apache specialists

This is a quick tutorial on how to place a 301 redirect on a webpage, by using the .htaccess. You will need FTP access to your server and a text editor to edit the .htaccess file.

You may want to put a 301 redirect on one of your pages, if you have moved the content elsewhere - but you wish to keep the page rank that Google has for your page. In order to do this, simply use the following code in your .htaccess file:

redirect 301 /old-link.html http://www.yourwebsite.com/new-link.html

Do not put an absolute URL for the first link, as it has to be relative to your website. In the example above we are simply redirecting from "/old-link.html" and this will now take us to "http://www.yourwebsite.com/new-link.html" to the new content.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Fill in the blank
  • member of 08 business connect - www.08businessconnect.com
  • Working with Shaw Trust
  • Gawds - Guild of Accessible Designers