문제

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!

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top