简体   繁体   English

Drupal 7自动生成URL别名面临的问题

[英]Facing issue with drupal 7 auto generate URL alias

The auto generate url alias works when i click on Save configuration (which we get from this link "Configure URL alias patterns"). 当我单击“保存配置”(我们从此链接“配置URL别名模式”获得)时,自动生成的URL别名有效。 But next time when i flush the cache it is not working. 但是下一次当我刷新缓存时它不起作用。

my pattern is content/[node:title] 我的模式是content / [node:title]

but when i flush cache (class registry or page and else) it give me node/id 但是当我刷新缓存(类注册表或页面等)时,它给了我节点/ ID

I had the same issue with one of my Drupal site and i had followed the the following steps that resolved my issue: 我的一个Drupal网站也遇到了同样的问题,并且按照以下步骤解决了我的问题:

1. Clear you Drupal cache.
2. Delete all existing aliases using bulk delete option.
3. Update or check the pattern settings and save the configurations.
4. Now generate the new URL aliases for all using the bulk update option.
5. And its done.

It worked for me to resolve my issue, hope will work for you. 它为我解决了我的问题,希望对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM