Question

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!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top