1

I've looked around and I couldn't find an answer to my question so here it is.

Clean URLs are enabled on my Drupal 7 website and are "working" in the sense that I can access the About Us page with www.mysite.com/about-us and with www.mysite.com/node/12.

However, usually with Wordpress and the get_permalink() function, every menu/links like ?p=12 get redirected/rewritten to /about-us. But with Drupal, my menu links are in the form node/12 , and when I click on a link I get the page /node/12, not /about-us.

Any idea how I can get the rewriting/re-routing done automatically?

Thanks!

Muhammad Reda
  • 26,379
  • 14
  • 93
  • 105
Alex
  • 828
  • 2
  • 10
  • 20
  • Drupal should attempt to use a path alias whenever it is available, so this might be a configuration problem. – HaleFx Jul 10 '12 at 19:40

1 Answers1

3

Your best bet would be the Global redirect module. The first of its many functions is:

Checks the current URL for an alias and does a 301 redirect to it if it is not being used.

I've used it in just about every Drupal site I've ever made and it works well.

Clive
  • 36,918
  • 8
  • 87
  • 113
  • I like that. Let me download this module! :o) – Alex Jul 10 '12 at 20:30
  • That's pretty much what I wanted to accomplish ... thank you very much! – Alex Jul 10 '12 at 20:41
  • 1
    If you want to get the aliased and ready-to-go URL of the page, use url('node/12'). This will change the link itself rather than a redirect at destination. Global Redirect is always a must-have module anyway. – AKS Jul 10 '12 at 21:16