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

Possible fix for infinite redirection... #520

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

fredericsimard
Copy link
Contributor

@fredericsimard fredericsimard commented Aug 28, 2024

The redirection issue is likely due to a redirection loop caused by the .htaccess rule.

The rule Redirect 301 /resources/ /resources/overview/ is redirecting any request to /resources/ to /resources/overview/. However, because /resources/overview/ still starts with /resources/, the rule is applied again, and again... causing the repeated redirect.

Ex.: https://gtfs.org/resources/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/overview/

The redirection issue is likely due to a redirection loop caused by the .htaccess rule. The rule `Redirect 301 /resources/ /resources/overview/` is redirecting any request to `/resources/` to `/resources/overview/`. However, because `/resources/overview/` still starts with `/resources/`, the rule is applied again, causing the repeated redirect.
Copy link
Contributor

@Alessandro100 Alessandro100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fredericsimard fredericsimard merged commit 95aa85f into main Aug 28, 2024
@fredericsimard fredericsimard deleted the fix-redirections-issue branch August 28, 2024 11:48
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

Successfully merging this pull request may close these issues.

2 participants