1

I have a new drupal site,it was built by other website designer.Now i got a problem for the url.There are some different url with same information.For example: "/taxonomy/term/31/0" and "/projects/led-tunnel-lighting".I only need the url like "/projects/led-tunnel-lighting". Please tell me how to fix this problem.Thank you very much! I was a novice of drupal.

1
  • Please tell us why it causes you problems and what would you considered "fix". In the meantime I can only suggest Global Redirect. But it's a wild guess, nothing more.
    – Mołot
    Commented Mar 5, 2015 at 9:47

2 Answers 2

0

I believe your two URLs are the same, but one is the system URL and the other one the aliases URL. They are both valid and normal to have, but in that case what you need is this module: Global Redirect

an alias provides a nice clean URL for a path on a site. However Drupal does not remove the old path (eg node/1234). The problem is that you now have two URLs representing the same content.

0

Whenever you need to link to a node or a term (or something else in which might have an URL-Alias), use the l() function. The link to the term will then be rewritten to the given URL-Alias (as long as there is one).

2
  • Thank you for your help.But What is the l() function?
    – ENELTEC
    Commented Mar 4, 2015 at 7:23
  • Maybe you read on the linked page a bit. I can't explain better as it is written there.
    – Lance
    Commented Mar 4, 2015 at 7:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.