Friday, March 7, 2014

How to change to Search Friendly URL In Drupal 7

If you see a website link like this http://yourdomain.com/node/83, it is 99.99% powered by Drupal. The link pattern of node/[number] is the default pattern of Drupal content links. However, if it looks like http://yourdomain.com/about-us, it will look more readable to human being.
Drupal has a feature called "URL Alias" that allows you to provide a more understandable name to the content.

Here are the Steps:
  • Login to your Admin Control Panel.
  • go to Admin --> Configuration . Under SEARCH & METADATA Block, Click on URL aliases option as shown below. 













  • Before going further,To check URL of Your Post Just Click on the Content which you created just now. after that,look at the addressbar & you will URL something like this:  http://localhost/drupal724/drupal-7.24/node/8










  • Now,open URL ALIASES menu. Click on Add alias Link in top.
  • There You'll Find Two Option.First is Existing System Path and Second is Path Alias.
  • Now, In the Existing Path Field, Enter The Default URL of POST which you recorded above in step-3 like node/8
  • Next,In Path Alias Field, Enter the URL of your Choice Related to your post. for example. If  your post title is about Drupal7 for Beginners then URL for that must be drupal7-for-beginners. 
  • Just Check the Below Screenshot for more Details:













  • That's it & You're done with it.now,You can see user Friendly URL's.


METHOD:2

  • You can also create Search Friendly URL'S while Creating content on a website like Article, Blogs, Basic page.
  • Go to admin --> Content --> Add Content --> Article
  • Fill the Required Information about Article. Navigate Down You will see "URL Path Setting" Tab.









  • Enter the URL alias as you did in Method -1 for node/8.
  • Save it and you're done.

No comments: