Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've added a redirect from a node using using it's alias. In this example I want mydomain/white-paper to redirect to mydomain/whitepaper
After choosing 'Add url redirect' I enter white-paper in 'path' and in 'To' I enter '/whitepaper' and I choose 301 permanent redirect. After saving I also choose apply. I then flush the cache and run the cron job. But after this there no redirect ever takes place when visiting mydomain/white-paper. I also visited /whitepaper in the off chance that it's reversed but there is no redirect there either.
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2016-12-08 at 12.48.16 PM.png | 21.77 KB | amy.h |
#3 | Screen Shot 2016-12-08 at 12.46.55 PM.png | 51.12 KB | amy.h |
#3 | screenshot2.png | 48.54 KB | amy.h |
Comments
Comment #2
BerdirCan you post screenshot of the redirect overview page and also what is stored in the redirect able?
Comment #3
amy.h CreditAttribution: amy.h commentedComment #4
amy.h CreditAttribution: amy.h commentedAttached are the screenshots for the overview page, and the edit page for the specific redirect, as well as the data in the redirect table in the drupal database.
Comment #5
BerdirWeird. Do you currently have an alias for /white-papers?
Do other redirects work?
Comment #6
amy.h CreditAttribution: amy.h commentedTurns out it only works if you use /node/nid. URL aliases don't work when they are the original path being redirected.
Comment #7
BerdirLooks like this is a duplicate of #2821158: Document that URL redirects work from node/{nid} but not alias then.