I have the "Automatically create redirects when URL aliases are changed." option turned on but it is not creating redirects when a path alias is changed.
I have the "Automatically create redirects when URL aliases are changed." option turned on but it is not creating redirects when a path alias is changed.
Comments
Comment #1
hass commentedConfirmed to be broken here, too
Comment #2
dave reidThere are multiple ways to change URL aliases. Could either you please describe the process that is failing for you - editing a node? editing an URL alias in Admin > Config > Search > URL aliases?
Comment #3
hass commentedEditing a node is broken for sure. Cannot say about the other.
Comment #4
dave reidI still cannot confirm this. Changing a node's alias manually several different times always adds a redirect from the old path. I need more detailed instructions on how to reproduce this aside from it's broken or it doesn't work.
Comment #5
hass commentedI'm using pathauto urls only.
Comment #6
onaz commentedHi guys,
I've had this same issue on my site for months and have subscribed to this issue. When Dave claimed that he can't reproduce, I started testing around.
Findings:
I decided to revert back to never changing aliases with pathauto until the fix is possibly available someday.
Comment #7
SilviuChingaru commentedI can confirm that with pathauto BULK OPERATION NO REDIRECTS are made... Tryed in any configuration of pathauto or redirect settings.
With pathauto normal settings ON NODE EDIT REDIRECT IS WORKING fine. I think the problem is somewere in pathauto batch functions.
Comment #8
SilviuChingaru commentedI've tested the second bulet case and the redirect is created. Only when auto paths are generated from bulk operations is not working.
Comment #9
trante commentedI also have this problem.
In settings "Automatically create redirects when URL aliases are changed" is checked,
but when i edit a node, alias is changed by pathauto,
But old alias didn't redirects to new one..
If i change alias manually, "Redirect" module creates redirect from old to new one.
Can't it make a rediraction if alias is changed by Pathauto??
Does old versions of "Redirect" does this ?
If so, i can go back to that version.
Thank you
Comment #10
trante commentedI tried also tried "redirect 7.x-1.0-beta4"
But it still doesn't create a 301 if alias is changed by pathauto.
Comment #11
dave reidWhat is your Update action setting set to on admin/config/search/path/settings? Is it set to Create a new alias. Delete the old alias.?
Comment #12
trante commentedThat setting is set to "Create a new alias. Leave the existing alias functioning."
Comment #13
dave reidThat setting is incompatible with Redirect module as it doesn't remove the old path alias. You'll need to use the Create a new alias. Delete the old alias. setting.
Comment #14
trante commentedThank you. I changed setting to delete old alias.
Now "Redirect" creates an 301 from old alias to new alias,
Also the entry from "/admin/config/search/path/list" is deleted for old alias.
But when i go to old alias from my web browser or check the http headers i saw that old alias gives a 200.
I cleared caches and run a successful cron. But still old alias is opened without rediracton.
I suppose i'm missing something..
Comment #15
dave reidAre you seeing the headers for the redirect or the headers for after the redirect has already worked (which would return a 200)?
Comment #16
trante commentedI wrote "http://www.example.com/old-alias" to browser and my node is opened,
but the address bar remained same.
Then i used an external site:
http://www.seoconsultants.com/tools/check-server-headers-tool/
I wrote "http://www.example.com/old-alias" to textbox and get this:
I wrote "http://example.com/" to this site. And a 301 code is written.
Because i redirected to www version by htaccess file last month.
Comment #17
hass commentedWhy is "Create a new alias. Leave the existing alias functioning." incompatible??? I'm also using redirect module and this setting and it's broken. If this is the reason for this bug, than we found now what need to be fixed here.
Comment #18
dave reidBecause then you have two conflicting items? It wouldn't make sense to both have a redirect from an old path and *also* have an URL alias on the old path. Just doesn't make sense why you would want that.
Comment #19
hass commentedThis configuration makes sense. My node/1 has alias foo/bar1. Tomorrow i change the node and pathauto generates a new alias named foo/bar2. In this case i expect that the previous path foo/bar1 ("keep previous alias") get's redirected with 301 to foo/bar2. This path must be kept as long as nobody accesses foo/bar1 for 16 weeks. Than the alias foo/bar1 can be deleted. This is usability wise all logic.
As i know - "keep alias" does not mean a node has two aliases (not supported in url_alias table as i know), it just means the previous alias must become a redirect, but it must be kept as long it's no longer accessed.
Comment #20
trante commentedI really appreciate your efforts for module.
In my last tryouts:
* In Pathauto "Create a new alias. Delete the old alias." is selected.
* Manually changed aliases creates a redirect automatically in "/admin/config/search/redirect"
Also old alias entry is automatically deleted from "/admin/config/search/path"
* Automatically (by pathauto) changed aliases creates a redirect automatically in "/admin/config/search/redirect"
Also old alias entry is automatically deleted from "/admin/config/search/path"
* When i try the old aliases both of them gives a 200. They don't gives a 301.
* When i try old aliases, "number of entry" and "last access" don't change in "/admin/config/search/redirect", it remains "zero" and "never" accordingly.
" The access number and last access time date in "Fix 404 pages" part is correct.
Comment #21
trante commentedAnd the worst thing is Google indexes new aliases without redirect. Two different aliases for same node is indexed as clones.
I can see the clones in Google search results.
Comment #22
panchoIt really seems to work pretty well, just the configuration options are misleading.
Some better wording in the description might clarify things a bit, but in the end, some more integration with the path module's admin pages would be helpful. Why keep things separate that are so tightly integrated?
Also, on node edit, there is no status message, if the old alias has been replaced by a redirect.
Comment #23
dave reidSome concrete suggestions to make for help text would be appreciated since I'm not a good person to try and make those suggestions.
Comment #24
wylbur commentedMarking this as outdated for now. If you have suggestions for help text please reopen this ticket.