301 Redirect

When you move a new site into Drupal or change your URL aliases for optimization purposes, it's a good idea to redirect your old page urls to the new ones in order to retain any backlinks and page rank while improving your linking structure. Performing a 301 redirect in your .htaccess file is how you would go about doing this. However, the standard code for this does not work in Drupal when running clean URLs. Instead you will need to rewrite the URL by adding the following code below the RewriteEngine command in your .htaccess file.

RewriteBase /

RewriteRule ^old/URL/path$ http://yourdomain.com/new/path [R=301,L]

The old path is the relative url off the root and the new path is the absolute url you want to redirect to including the domain. Make sure that this code is placed above Drupal's clean url rewrite commands.

Posted In

wedding

supply in stock and custom lace front wigs, full lace wigs, lace wigs, human hair wigs, remy lace front wigs, cheap wigs, cheap, buy, celebrity
<

cosplay | Tue, 07/27/2010 - 03:29

Drupal itself is well-known

Drupal itself is well-known and popular for its search-engine friendliness. Its markup is very clean and easy to use as well as standards-compliant. It creates all the tags the engines are looking for. drupal content management

aman | Mon, 06/14/2010 - 13:00

Awesome post! Interesting

Awesome post! Interesting info to know.It’s hard to find knowledgeable people on this topic...

bianchi holsters

atlas | Wed, 06/02/2010 - 10:56

yeah, I remember this logic

yeah, I remember this logic back when I was a programmer on the company I have been working. At first it really hurts my head thinking what to do and its all just like this. cv writing

namaste | Sun, 04/18/2010 - 22:25

Thanks for giving great

Thanks for giving great idea. I want to move on new site of it training, ccna 640-802, exam 70-270 and i don't want to lose its backlinks. Good job and please keep sharing new ideas.

james7 | Thu, 08/13/2009 - 07:12