0

I'm getting url alias for all articles like mysite.com/node/14 but I wanted to set the url as aritcle titles like this: mysite.com/article-title

So, How to set all url alias as per the articles title?

1 Answer 1

4

Use Pathauto module.

The Pathauto module automatically generates URL/path aliases for various kinds of content
(nodes, taxonomy terms, users) without requiring the user to manually specify the path alias.
This allows you to have URL aliases like /category/my-node-title instead of /node/123.
The aliases are based upon a "pattern" system that uses tokens which the administrator can
change.

9
  • what should I type in path pattern? Jun 27, 2014 at 7:05
  • I tried [current-page:title] but nothing change.. Jun 27, 2014 at 7:06
  • @wolverine - we posted same answers, same time :) but I'm bit late. So I'm going to delete my answer Jun 27, 2014 at 7:06
  • 1
    @NavinRauniyar It will work only for newly created node. For existing node you have to manually add the alias.
    – msmani
    Jun 27, 2014 at 7:19
  • 1
    no, it worked for me. I used bulk generate option. Jun 27, 2014 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.