Friday, August 17, 2012

Web Site Redirection - How to implement a 301 redirect


You have just created a new web site, but want to pass the
rankings of search engines of the old to the new one. What
Strategy is the most effective and spider / visitor friendly
to implement the redirection website? You must use a
Redirect 301.

What is a 301 redirect?

It is used when you want to redirect your web site or web
pages. The code "301" is interpreted as "moved permanently".
After the code, the URL of the page is missing or renamed
noted, followed by a space, then followed by the new position
or file name.

Requirements for using a 301 redirect

Apache server.

Most hosting services used these days have the Apache server.
Check with your host if you're not sure.

. Htaccess

When a search engine spider requests a web page, the web
servers check the presence of a file. htaccess. The. Htaccess
specific instructions that are processed subsequently sent
return to the browser.

How do I implement a 301 redirect?

1. Create an htaccess file -. You can use Notepad to create
the file. Remember to insert a period at the beginning of
the file name without extension at the end (ie. htaccess).

2. Create a line of code that reads like this:

Redirect permanent / http://www.domainname.com/

The first "/" indicates that everything from the top level
Site should be directed downwards.

All current links within search engine results from
old site redirects to the top level of your new site.

If you already have a file. Htaccess on the server, open
up in Notepad and look for lines of code that are there.
If the lines of code are present, do not change any of them, but
leave a space, then insert the redirect code above 301.

3. Save the file. Htaccess in the root directory and
load on the server.

4. Try typing the old website address. You
must be immediately redirected to the new Web site
address.

Redirect a Web Page

The above example shows how to redirect an entire web site.
What happens if you only want to redirect a web page that you
changed, but want to keep the old page rankings?

Follow the same procedure as above, but write the code as
in this way:

redirect 301 / old / old.htm [http://www.you.com/new.htm]

/ Old / old.htm (the original folder path and file name)

[Http :/ / www.you.com / new.htm] (new path and file name)

Notes:

When search engine spiders visit your old website
or web pages, they will automatically be redirected to
The new website or web page.

Conclusion:

It may take several weeks or months for the old classifications
to pass to the new site. So do not remove
your old domain name, website or web pages yet .......

No comments:

Post a Comment