Custom url for taxonomy> Drupal 6 dictionary

I am new to Drupal. question;

I am creating a hotel catalog site. I created a taxonomy> Dictionary for places like London, Liverpool, etc. For example, the list below shows a list of London

localhost/drupal/taxonomy/term/1 

how to change this url to something like

 localhost/drupal/hotels/london 

Is it possible? Appreciate the advice so much!

+4
source share
1 answer

Turn on the path module in the Drupal kernel and download and enable the pathauto module from the Drupal modules website. You can use pathauto to set rules on how you want to rewrite the paths of your taxonomy pages, and you can do something like this.

I assume that to get the URL alias you suggest, the rewrite rules look something like this:

[vocab-raw]/[cat-raw]

Assuming your dictionary is called Hotels, and that term is called London.

+4
source

Source: https://habr.com/ru/post/1310080/


All Articles