How to do 301 redirect in a drupal with the htaccess file

Note: All the instructions bellow are for do in the htaccess file.
  1. Uncomment the command RewriteBase if the site is running in a VirtualDocumentRoot at http://example.com/ or uncomment the command RewriteBase /drupal if you are using Drupal in a subdirectory or in a VirtualDocumentRoot at http://example.com/drupal
  2. Add the following code below the RewriteEngine command in your .htaccess file RewriteRule ^old_file_name http://www.example.com/new-file-name [R=301,L]
  3. Replace old_file_name with the path to the old file which you wish to have redirected and then replace http://www.example.com/new-file-name with the complete path to the new page.

One additional note, if you put these changes bellow the rewrite statement and before any other redirects, it works better

How to create categories in blogs with Drupal 7

Hi all, more than one will have spent hours trying to do this since the new Drupal brought some changes with it that no longer allows us to do this in a easy and direct way as it did the Drupal 6, here are the steps required to do this and accomplish on the page that you are managing, it look with a neat and elegant form.

Create categories

  1. Go to “structure”
  2. We enter in “content type”
  3. Select “manage fields” of blog entries
  4. Add a new field, the type of data to be stored term_reference: taxonomy_Tags, if it is on the list of existing fields, if not create a new one.

NOTE: If we created new one, we could name it field_blog

  1. In the tag name we put: categories and in “Form element to edit the data” we select “Autocomplete term widget (tagging)”

This is ready for a side; now all blogs have one or more categories if users specify one or more separated by comma.

Grouping the categories and do that the users find them easily?

Create a new menu and we call it categories, then we create menus with links to those categories, to achieve this:

  1. Open in a separate window and start session in our drupal
  2. We headed back to “structure”
  3. We entered the section of “taxonomy”
  4. We entered on vocabulary list of terms “Tags”
  5. Select the first taxonomy and take us to all the blogs post in this category
  6. Copy the url of the search result
  7. In the previous window create a new menu in categories with the name of the category you wish linker
  8. Menu father <catagories> and we copy the url above, and so on until you have created a menu for each category

The menu already exists, now we must show it

  1. We return to “structure”
  2. We went into “blocks”
  3. In the list of blocks “Disabled”, we go into the settings of menu “categories”
  4. We put a title to the menu so that users know what is, in this case is: Categories
  5. In the configuration of “region” of our page, we select in which part we want the block appears, in my case I put it in the second sidebar
  6. And finally select the pages you want the block appears, in this case I select “All pages except those listed”, so the categories can be seen in all the blog entries in all categories but not in the pages that are unrelated to this content

NOTE: If a user makes an entry with a new category, the administrator must create you a new access in the menu of categories since this step, as opposed to the creation of categories, is not automatic.

Hope you like and will be helpful for you