I'm new at Drupal. a question;
I create a hotels directory site. I created Taxonomy>开发者_运维技巧Vocabulary for locations like London, Liverpool, etc... For example the url below lists the London
localhost/drupal/taxonomy/term/1
how can change that url to something like
localhost/drupal/hotels/london
is it possible? appreciate advices so much!!
Enable the path module in Drupal core, and download and enable the pathauto module from the Drupal modules website. You can use pathauto to set rules over how you wish to rewrite the paths of your taxonomy pages, and you can certainly do something like this.
I am guessing that to achieve the URL alias you are suggesting, the rewrite rules would look something like:
[vocab-raw]/[cat-raw]
Assuming that your vocabulary is called Hotels, and the term is called London.
加载中,请稍侯......
精彩评论