-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[5.1] SEF: Implementing index.php behavior #42704
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
Conversation
|
|
To the other points: see other PR To 2.: I will reword that. |
|
I'm misunderstanding something Why would you have the first option enabled but not have the second option enabled |
|
The first option modifies how URLs are created. The second one modifies how URLs are parsed. Since people are doing awful things in routing, we can't be sure that their changes don't break this feature, this the 2 options can be enabled separately. |
|
Honestly I cant see the value for core of adding 4 extra options (this PR and the other one) to address issues in other peoples code. Thats a maintainability nightmare and a usability issue for all those people that wonder what these options do etc. If, as you say, core does not create these urls then it should be for the extension dev to fix their own problem. And if they wont the site owner can easily create an htaccess rule. |
|
Brian got quite a few valid points here. Why? Wouldn´t it better go into a checking feature for the official extension JED Checker, for it to teach third-party devs how not to do awful things in routing? IE, do this and you won´t get approved for fame and showcase. Fix it and get in. |
|
And at the same time, our users are complaining about sub-par behavior of Joomla. So, should we shift the blame and force users to be stuck in that situation or provide a solution for now to get around that? I'm happy to add this to the JED checker as soon as you solved the Halting problem. |
|
Adding more options is never a solution. Those same users will still complain as they dont know about the options (unless they ask). If its such a real problem (I have no idea) then make the changes without options |
Co-authored-by: Quy <quy@nomonkeybiz.com>
Co-authored-by: George Wilson <georgejameswilson@googlemail.com>
|
I changed the feature and description above. |
…into 5.1-routing-indexphp
|
I have tested this item ✅ successfully on 4e471b0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42704. |
|
I have tested this item ✅ successfully on 4e471b0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42704. |
|
Setting RTC as it has 2 good tests, but setting also the RMDG (release manager decision queue) label because this PR is subject of discussion among maintainers. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42704. |
Co-authored-by: Harald Leithner <leithner@itronic.at>
|
After some discussions, we decided to switch this to use 301 redirects instead of 303s. |
|
Back to pending as there have been made changes. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42704. |
|
I have tested this item ✅ successfully on c35a3a0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42704. |
1 similar comment
|
I have tested this item ✅ successfully on c35a3a0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42704. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42704. |
|
Link to documentation has been added. |
|
Thx |

Summary of Changes
Joomla has been improving its SEO performance constantly and one issue which is still open is the behavior of
index.phpin URLs. In some rare cases, the URL might end withindex.php, even though that is not needed anymore, resulting in duplicate content, since the same URL withoutindex.phpgets the same result. A common case is the URL for the homepage, which often enough contains that reference. Another case is sites which switch from non-rewrite to rewrite the URLs.This PR introduces one new setting in the SEF system plugin. This setting enforces removing the index.php from the URL with a redirect when the URL starts or ends with index.php. This setting only takes effect if URL rewriting is enabled.
This PR depends on #42692.
I'd like to thank ithelps Digital for sponsoring this feature.
Testing Instructions
Link to documentations
Please select:
Documentation link for docs.joomla.org: https://docs.joomla.org/Search_Engine_Friendly_URLs
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed