By ggskygg on
Hi,
I have around 100 nodes of a certain type which I need to update the alias for. I did that using the bulk change option in admin/content/node. However, after the new aliases are added, the old aliases do not redirect to the new one, which is completely useless as it creates massive duplicate content on my site. Does anyone know how to override this?
Thanks in advance, please help.
Comments
Try this
Try this http://drupal.org/project/path_redirect
Hi Kirk, Thanks a lot, I
Hi Kirk,
Thanks a lot, I installed it and the "Automatically create redirects when URL aliases are changed." box is checked. However, the redirects still don't work - when I go to the old alias, it still works fine and without redirecting to the new alias.
I also checked the "Create new alias. Redirect from old alias" option in the URL Aliases general settings section.
Any idea? Thanks.
EDIT: just to make things clearer: the redirect was actually created and it is visible in the Path Redirect's "List" page. The redirect simply doesn't seem to be working, even though it has theoretically been correctly added.
have you made any change on
have you made any change on .htaccess file? If yes, try to use the default Drupal one, and see is there any more problem.
Hi seanray, Thanks for trying
Hi seanray,
Thanks for trying to help. The only change I've made in .htaccess was to redirect http://example.com to http://www.example.com, nothing more. I have, however, tried swapping the file for the default Drupal one just to be safe - it didn't help :(
Any other hints really appreciated. Also, let me know if there is anything I can provide to make it easier for you to help me out.
Here is a sample link on my website:
http://www.girlsinpoker.com/natalia-nikitinas-biography-and-photos-galle...
The original alias didn't have the "884" node ID at the end - I added it using the [nid] token. If you try to type in the link without the node ID, you will see that it is not redirecting at all, even though it should - see screenshot below:
http://imageshack.us/photo/my-images/19/123rhv.jpg/
EDIT: what's interesting is that I just noticed the redirect works well for some alises, but not for others. An example would be here: http://www.girlsinpoker.com/annie-duke-poker-league-tournament-schedule/888 where if you remove the node id, it properly redirects you to the appropriate alias.
EDIT2: a pattern is starting to emerge. Seems like any recent news post that I have added AFTER I've changed my alias settings are redirecting properly. This is not the case, however, for any older links that have existed prior to the alias settings changes, and which I updated through the bulk "update" command under admin/content/node. Seems therefore that the issue is related to the bulk updates rather than anything else. Any ideas?
Thanks,
Mark
Redo
If it was a pattern on the old aliases, what if you do a new bulk change back to the old alias, and then back again?
Be sure to take a backup before you do it, or before any bulk changes.