Note: All the instructions bellow are for do in the htaccess file.
- 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
- 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]
- 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
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.
- Go to “structure”
- We enter in “content type”
- Select “manage fields” of blog entries
- 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
- 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:
- Open in a separate window and start session in our drupal
- We headed back to “structure”
- We entered the section of “taxonomy”
- We entered on vocabulary list of terms “Tags”
- Select the first taxonomy and take us to all the blogs post in this category
- Copy the url of the search result
- In the previous window create a new menu in categories with the name of the category you wish linker
- 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
- We return to “structure”
- We went into “blocks”
- In the list of blocks “Disabled”, we go into the settings of menu “categories”
- We put a title to the menu so that users know what is, in this case is: Categories
- 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
- 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