Skip to content

Comments

chore: redirect of some capital letters in url#1759

Merged
darcywong00 merged 4 commits intomasterfrom
htaccess-capital-urls
Jan 23, 2025
Merged

chore: redirect of some capital letters in url#1759
darcywong00 merged 4 commits intomasterfrom
htaccess-capital-urls

Conversation

@Meng-Heng
Copy link
Collaborator

More on: keymanapp/keyman.com#415.

The .htaccess validation may be overlapping a bit with the existing rules in the file but this should remove the registration of 404 Not found of the capital URLs:

https://help.keyman.com/DEVELOPER/ENGINE/web/1.0/
...
https://help.keyman.com/DEVELOPER/ENGINE/web/1.0/index.php
...
https://help.keyman.com/DEVELOPER/ENGINE/WEB/10.0/guide/examples/automatic-control
https://help.keyman.com/DEVELOPER/ENGINE/web/10.0/guide/examples/automatic-control
...
https://help.keyman.com/DEVELOPER/ENGINE/web/11.0/reference/core/addHotKey.php
...
https://help.keyman.com/DEVELOPER/ENGINE/web/12.0/guide/examples
...
https://help.keyman.com/DEVELOPER/ENGINE/WEB/13.0
https://help.keyman.com/DEVELOPER/ENGINE/web/13.0/guide/
...
https://help.keyman.com/DEVELOPER/ENGINE/web/14.0/reference/core/
https://help.keyman.com/DEVELOPER/ENGINE/WEB/14.0/reference/core/addKeyboards
...=
https://help.keyman.com/DEVELOPER/ENGINE/WEB/15.0/guide/examples
...
https://help.keyman.com/DEVELOPER/ENGINE/web/16.0/
...
more

Descriptive reports: https://docs.google.com/spreadsheets/d/1On3WrJMyDo3QboQvl7S1sbtD1z3HO3JH/edit?usp=sharing&ouid=115939244027961768677&rtpof=true&sd=true

This PR is ready for review.

@darcywong00
Copy link
Contributor

Relates to #691.
Sounds like the Google index is still including these uppercased links

.htaccess Outdated
Comment on lines 28 to 32
RedirectMatch "(.*)/ENGINE(.*)" "$1/engine$2"

RedirectMatch "(.*)/WEB(.*)" "$1/web$2"

RedirectMatch "(.*)/DESKTOP(.*)" "$1/windows$2"
Copy link
Member

Choose a reason for hiding this comment

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

These are probably too generic. We should match the prefix precisely to avoid accidental matches

@darcywong00 darcywong00 modified the milestones: A18S19, A18S20 Jan 18, 2025
@Meng-Heng
Copy link
Collaborator Author

Changes are applied and ready for reviews.

@Meng-Heng
Copy link
Collaborator Author

Meng-Heng commented Jan 21, 2025

Yes, @darcywong00. These are recently reported as well:
image

@Meng-Heng Meng-Heng requested a review from mcdurdin January 21, 2025 08:11
Co-authored-by: Marc Durdin <marc@durdin.net>
@Meng-Heng Meng-Heng requested a review from mcdurdin January 22, 2025 05:26
@darcywong00 darcywong00 merged commit 408852e into master Jan 23, 2025
3 checks passed
@darcywong00 darcywong00 deleted the htaccess-capital-urls branch January 23, 2025 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants