Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing site redirect does not remove database entry. #3950

Open
jmwindler opened this issue Dec 9, 2024 · 1 comment
Open

Removing site redirect does not remove database entry. #3950

jmwindler opened this issue Dec 9, 2024 · 1 comment

Comments

@jmwindler
Copy link

Summary

When removing Site Redirect, browsers show "Error: too many redirects".

Steps to reproduce

We had another site entered in the field "Relocate to domain:" for a period, and then removed the site from that field in order to discontinue the site redirect. After this browsers were displaying "Error too many redirects" when visiting the root URL.

I tried disabling the Redirection plugin both from within the Wordpress Admin, and also using the temporary solution that you recommend via "wp-config.php" and in both cases disabling redirection removed the issue.

I investigated the database and discovered that, when clearing the field "Relocate to domain:", this leaves a persistent entry in the database table "wp_redirection_items" with column "url" = "/" and column "action_data" = "/".

Deleting that row from the database cleared the issue. Removing an entry from the field "Relocate to domain:" ought to remove the entry from the database rather than replacing with "/".

@johngodley
Copy link
Owner

The relocation to domain option does not create a redirect entry in the database. If you have an entry there then it is from something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants